summaryrefslogtreecommitdiffstats
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-21 02:49:45 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-31 15:33:09 +0100
commitb7a48c422aa7293525909ac7b32575bce8575bde (patch)
treec8d237cce5c9b116f2b808ec3ae9348dc4998d89 /src/video_core/vertex_shader.cpp
parentcitra-qt: Fix displaying RGBA5551 framebuffers. (diff)
downloadyuzu-b7a48c422aa7293525909ac7b32575bce8575bde.tar
yuzu-b7a48c422aa7293525909ac7b32575bce8575bde.tar.gz
yuzu-b7a48c422aa7293525909ac7b32575bce8575bde.tar.bz2
yuzu-b7a48c422aa7293525909ac7b32575bce8575bde.tar.lz
yuzu-b7a48c422aa7293525909ac7b32575bce8575bde.tar.xz
yuzu-b7a48c422aa7293525909ac7b32575bce8575bde.tar.zst
yuzu-b7a48c422aa7293525909ac7b32575bce8575bde.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/vertex_shader.cpp7
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 {
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;