diff options
| author | bunnei <bunneidev@gmail.com> | 2018-04-15 03:19:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-15 03:19:57 -0400 |
| commit | bb0c3fc828f63929a1eef9d0f75493fffb19b8bc (patch) | |
| tree | f0c06f5bbcc0f8e7ea6d3681060c12936e887359 /src/video_core/renderer_opengl/gl_state.h | |
| parent | 2b9a6b32816a627371e19e83a3735aa899e75740 (diff) | |
| parent | c9b511da084bcf1655a7e844ee0d80e46ce681c9 (diff) | |
Merge pull request #328 from Subv/constbuffers
GPU: Upload the shader Constant Buffers as SSBOs to the GPU
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index b18af14bb..6a80e6a7d 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -123,6 +123,12 @@ public: GLuint uniform_buffer; // GL_UNIFORM_BUFFER_BINDING GLuint shader_program; // GL_CURRENT_PROGRAM GLuint program_pipeline; // GL_PROGRAM_PIPELINE_BINDING + struct ConstBufferConfig { + bool enabled; + GLuint bindpoint; + GLuint ssbo; + }; + std::array<std::array<ConstBufferConfig, 16>, 5> const_buffers{}; } draw; struct { |
