summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-13 21:20:47 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-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
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.gz
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.bz2
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.lz
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.xz
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.tar.zst
yuzu-aff808b2fdfd9605179a13eb55b72d68a7cdd8c2.zip
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 {
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;