diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2015-12-10 13:06:33 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2016-01-13 16:10:36 +0000 |
commit | 412a1d9b1d0b73fcc99c73bd89457cc11ece00fa (patch) | |
tree | 0472dcf48168c4903fa6faf148ae08bc1bd3fd13 /src/render/graphicshelpers/graphicshelpergl4.cpp | |
parent | 9add600584ab87c80d439c0d5571994d72af3477 (diff) |
RenderView/GraphicsContext: support SSBO/UBO with buffer used as Parameters
Change-Id: I347aa5deea6521b43b9033e2200ab2f8b272f671
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl4.cpp')
-rw-r--r-- | src/render/graphicshelpers/graphicshelpergl4.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl4.cpp b/src/render/graphicshelpers/graphicshelpergl4.cpp index df9a2f839..86b17e7f3 100644 --- a/src/render/graphicshelpers/graphicshelpergl4.cpp +++ b/src/render/graphicshelpers/graphicshelpergl4.cpp @@ -566,6 +566,11 @@ void GraphicsHelperGL4::bindUniformBlock(GLuint programId, GLuint uniformBlockIn m_funcs->glUniformBlockBinding(programId, uniformBlockIndex, uniformBlockBinding); } +void GraphicsHelperGL4::bindShaderStorageBlock(GLuint programId, GLuint shaderStorageBlockIndex, GLuint shaderStorageBlockBinding) +{ + m_funcs->glShaderStorageBlockBinding(programId, shaderStorageBlockIndex, shaderStorageBlockBinding); +} + void GraphicsHelperGL4::bindBufferBase(GLenum target, GLuint index, GLuint buffer) { m_funcs->glBindBufferBase(target, index, buffer); |