Pica: Add support for boolean uniforms.

This commit is contained in:
Tony Wasserka 2014-12-13 21:20:47 +01:00
parent 67618a2c55
commit aff808b2fd
4 changed files with 21 additions and 2 deletions

View file

@ -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;