summaryrefslogtreecommitdiff
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-12-13 21:20:47 +0100
committerGravatar Tony Wasserka2014-12-20 18:06:55 +0100
commitaff808b2fdfd9605179a13eb55b72d68a7cdd8c2 (patch)
tree83e896f6e90c5b13a12d1b879ea3c79a7dbb5a55 /src/video_core/vertex_shader.cpp
parentPica/VertexShader: Add support for MOVA, CMP and IFC. (diff)
downloadyuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.gz
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.xz
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.zip
Pica: Add support for boolean uniforms.
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;