diff options
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
| -rw-r--r-- | src/video_core/vertex_shader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index bed5081a0..090ffd420 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp | |||
| @@ -30,6 +30,8 @@ static struct { | |||
| 30 | Math::Vec4<float24> f[96]; | 30 | Math::Vec4<float24> f[96]; |
| 31 | 31 | ||
| 32 | std::array<bool,16> b; | 32 | std::array<bool,16> b; |
| 33 | |||
| 34 | std::array<Math::Vec4<u8>,4> i; | ||
| 33 | } shader_uniforms; | 35 | } shader_uniforms; |
| 34 | 36 | ||
| 35 | // TODO: Not sure where the shader binary and swizzle patterns are supposed to be loaded to! | 37 | // TODO: Not sure where the shader binary and swizzle patterns are supposed to be loaded to! |
| @@ -57,6 +59,11 @@ bool& GetBoolUniform(u32 index) | |||
| 57 | return shader_uniforms.b[index]; | 59 | return shader_uniforms.b[index]; |
| 58 | } | 60 | } |
| 59 | 61 | ||
| 62 | Math::Vec4<u8>& GetIntUniform(u32 index) | ||
| 63 | { | ||
| 64 | return shader_uniforms.i[index]; | ||
| 65 | } | ||
| 66 | |||
| 60 | const std::array<u32, 1024>& GetShaderBinary() | 67 | const std::array<u32, 1024>& GetShaderBinary() |
| 61 | { | 68 | { |
| 62 | return shader_memory; | 69 | return shader_memory; |