summaryrefslogtreecommitdiff
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 5d9203c86..fbec1bcc8 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -26,8 +26,9 @@ namespace VertexShader {
26 26
27static struct { 27static struct {
28 Math::Vec4<float24> f[96]; 28 Math::Vec4<float24> f[96];
29} shader_uniforms;
30 29
30 std::array<bool,16> b;
31} shader_uniforms;
31 32
32// TODO: Not sure where the shader binary and swizzle patterns are supposed to be loaded to! 33// TODO: Not sure where the shader binary and swizzle patterns are supposed to be loaded to!
33// For now, we just keep these local arrays around. 34// For now, we just keep these local arrays around.
@@ -49,6 +50,11 @@ Math::Vec4<float24>& GetFloatUniform(u32 index)
49 return shader_uniforms.f[index]; 50 return shader_uniforms.f[index];
50} 51}
51 52
53bool& GetBoolUniform(u32 index)
54{
55 return shader_uniforms.b[index];
56}
57
52const std::array<u32, 1024>& GetShaderBinary() 58const std::array<u32, 1024>& GetShaderBinary()
53{ 59{
54 return shader_memory; 60 return shader_memory;