summaryrefslogtreecommitdiffstats
path: root/src/render/backend/quniformvalue.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-12-10 13:06:33 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-01-13 16:10:36 +0000
commit412a1d9b1d0b73fcc99c73bd89457cc11ece00fa (patch)
tree0472dcf48168c4903fa6faf148ae08bc1bd3fd13 /src/render/backend/quniformvalue.cpp
parent9add600584ab87c80d439c0d5571994d72af3477 (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/backend/quniformvalue.cpp')
-rw-r--r--src/render/backend/quniformvalue.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/backend/quniformvalue.cpp b/src/render/backend/quniformvalue.cpp
index 511720ea1..eb5c9a682 100644
--- a/src/render/backend/quniformvalue.cpp
+++ b/src/render/backend/quniformvalue.cpp
@@ -108,6 +108,11 @@ void ShaderParameterPack::setUniformBuffer(const BlockToUBO &blockToUBO)
m_uniformBuffers.append(blockToUBO);
}
+void ShaderParameterPack::setShaderStorageBuffer(const BlockToSSBO &blockToSSBO)
+{
+ m_shaderStorageBuffers.push_back(blockToSSBO);
+}
+
void TextureUniform::apply(GraphicsContext *ctx, const ShaderUniform &description) const
{
// We assume that the texture has been successfully bound and attache to a texture unit