mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 03:07:56 -05:00
Pica/CommandProcessor: Add support for integer uniforms.
This commit is contained in:
@ -30,6 +30,8 @@ static struct {
|
||||
Math::Vec4<float24> f[96];
|
||||
|
||||
std::array<bool,16> b;
|
||||
|
||||
std::array<Math::Vec4<u8>,4> i;
|
||||
} shader_uniforms;
|
||||
|
||||
// TODO: Not sure where the shader binary and swizzle patterns are supposed to be loaded to!
|
||||
@ -57,6 +59,11 @@ bool& GetBoolUniform(u32 index)
|
||||
return shader_uniforms.b[index];
|
||||
}
|
||||
|
||||
Math::Vec4<u8>& GetIntUniform(u32 index)
|
||||
{
|
||||
return shader_uniforms.i[index];
|
||||
}
|
||||
|
||||
const std::array<u32, 1024>& GetShaderBinary()
|
||||
{
|
||||
return shader_memory;
|
||||
|
Reference in New Issue
Block a user