Pica: Add support for boolean uniforms.
This commit is contained in:
parent
67618a2c55
commit
aff808b2fd
4 changed files with 21 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue