diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-18 22:42:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 22:42:40 +0200 |
commit | ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e (patch) | |
tree | f8f53423389ca5787c05e249d65cd2df3f59b037 /src/video_core/renderer_opengl/gl_shader_manager.h | |
parent | Merge pull request #350 from Subv/tex_components (diff) | |
download | yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.tar yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.tar.gz yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.tar.bz2 yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.tar.lz yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.tar.xz yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.tar.zst yuzu-ce4f159b1cf2aa090e41dc0e2fbd65aa6a31942e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.h | 5 |
1 files changed, 2 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 be63320e0..e963b4b7e 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.h +++ b/src/video_core/renderer_opengl/gl_shader_manager.h @@ -30,10 +30,9 @@ void SetShaderSamplerBindings(GLuint shader); // Not following that rule will cause problems on some AMD drivers. struct MaxwellUniformData { void SetFromRegs(const Maxwell3D::State::ShaderStageInfo& shader_stage); - // TODO(Subv): Use this for something. + alignas(16) GLvec4 viewport_flip; }; -// static_assert(sizeof(MaxwellUniformData) == 1024, "MaxwellUniformData structure size is -// incorrect"); +static_assert(sizeof(MaxwellUniformData) == 16, "MaxwellUniformData structure size is incorrect"); static_assert(sizeof(MaxwellUniformData) < 16384, "MaxwellUniformData structure must be less than 16kb as per the OpenGL spec"); |