Pica/CommandProcessor: Add support for integer uniforms.

This commit is contained in:
Tony Wasserka 2014-12-21 02:49:45 +01:00
parent b03a97e0b8
commit b7a48c422a
4 changed files with 30 additions and 1 deletions

View file

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