diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-26 16:25:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 16:25:56 +0200 |
commit | 36dedae842b3bc094f52e46f0e8edc028edeec25 (patch) | |
tree | 79886fcda14b4db11b65e2c2dff338c4e9c2689c /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #589 from mailwl/fix-crash (diff) | |
parent | Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. (diff) | |
download | yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.tar yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.tar.gz yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.tar.bz2 yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.tar.lz yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.tar.xz yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.tar.zst yuzu-36dedae842b3bc094f52e46f0e8edc028edeec25.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index b7c8cf843..2ab066681 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -54,6 +54,11 @@ public: OGLShader shader; }; + /// Maximum supported size that a constbuffer can have in bytes. + static constexpr size_t MaxConstbufferSize = 0x1000; + static_assert(MaxConstbufferSize % sizeof(GLvec4) == 0, + "The maximum size of a constbuffer must be a multiple of the size of GLvec4"); + private: class SamplerInfo { public: |