diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-15 09:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-15 09:19:57 +0200 |
commit | bb0c3fc828f63929a1eef9d0f75493fffb19b8bc (patch) | |
tree | f0c06f5bbcc0f8e7ea6d3681060c12936e887359 /src/video_core/renderer_opengl/gl_shader_manager.h | |
parent | Merge pull request #332 from bunnei/fix-total-mem-usage (diff) | |
parent | GPU: Upload the entirety of each constbuffer for each shader stage as SSBOs. (diff) | |
download | yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.tar yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.tar.gz yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.tar.bz2 yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.tar.lz yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.tar.xz yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.tar.zst yuzu-bb0c3fc828f63929a1eef9d0f75493fffb19b8bc.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 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.h b/src/video_core/renderer_opengl/gl_shader_manager.h index 5c8560cf5..f003ce532 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.h +++ b/src/video_core/renderer_opengl/gl_shader_manager.h @@ -30,11 +30,10 @@ 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); - - using ConstBuffer = std::array<GLvec4, 4>; - alignas(16) std::array<ConstBuffer, Maxwell3D::Regs::MaxConstBuffers> const_buffers; + // TODO(Subv): Use this for something. }; -static_assert(sizeof(MaxwellUniformData) == 1024, "MaxwellUniformData structure size is incorrect"); +// static_assert(sizeof(MaxwellUniformData) == 1024, "MaxwellUniformData structure size is +// incorrect"); static_assert(sizeof(MaxwellUniformData) < 16384, "MaxwellUniformData structure must be less than 16kb as per the OpenGL spec"); |