mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 13:38:08 -05:00
Pica: Add support for boolean uniforms.
This commit is contained in:
@ -26,8 +26,9 @@ namespace VertexShader {
|
||||
|
||||
static struct {
|
||||
Math::Vec4<float24> f[96];
|
||||
} shader_uniforms;
|
||||
|
||||
std::array<bool,16> b;
|
||||
} shader_uniforms;
|
||||
|
||||
// TODO: Not sure where the shader binary and swizzle patterns are supposed to be loaded to!
|
||||
// For now, we just keep these local arrays around.
|
||||
@ -49,6 +50,11 @@ Math::Vec4<float24>& GetFloatUniform(u32 index)
|
||||
return shader_uniforms.f[index];
|
||||
}
|
||||
|
||||
bool& GetBoolUniform(u32 index)
|
||||
{
|
||||
return shader_uniforms.b[index];
|
||||
}
|
||||
|
||||
const std::array<u32, 1024>& GetShaderBinary()
|
||||
{
|
||||
return shader_memory;
|
||||
|
Reference in New Issue
Block a user