diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-11-25 08:37:29 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-11-25 08:37:29 +0100 |
commit | 924e834b8fbc105b19c0029c7870ad2ddd934f3e (patch) | |
tree | c1005f674b8a74397f165158515dcb131e0d6903 /src/video_core/renderer_opengl/gl_shader_manager.h | |
parent | Merge pull request #1641 from DarkLordZach/sm-register-unregister (diff) | |
download | yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.tar yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.tar.gz yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.tar.bz2 yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.tar.lz yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.tar.xz yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.tar.zst yuzu-924e834b8fbc105b19c0029c7870ad2ddd934f3e.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_manager.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.h b/src/video_core/renderer_opengl/gl_shader_manager.h index 9a5d7e289..b757f5f44 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.h +++ b/src/video_core/renderer_opengl/gl_shader_manager.h @@ -21,8 +21,11 @@ using Tegra::Engines::Maxwell3D; struct MaxwellUniformData { void SetFromRegs(const Maxwell3D::State::ShaderStageInfo& shader_stage); alignas(16) GLvec4 viewport_flip; - alignas(16) GLuvec4 instance_id; - alignas(16) GLuvec4 flip_stage; + struct alignas(16) { + GLuint instance_id; + GLuint flip_stage; + GLfloat y_direction; + }; struct alignas(16) { GLuint enabled; GLuint func; @@ -30,7 +33,7 @@ struct MaxwellUniformData { GLuint padding; } alpha_test; }; -static_assert(sizeof(MaxwellUniformData) == 64, "MaxwellUniformData structure size is incorrect"); +static_assert(sizeof(MaxwellUniformData) == 48, "MaxwellUniformData structure size is incorrect"); static_assert(sizeof(MaxwellUniformData) < 16384, "MaxwellUniformData structure must be less than 16kb as per the OpenGL spec"); |