summaryrefslogtreecommitdiffstats
path: root/src/render/backend/shadervariables_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire.ecortex@kdab.com>2014-11-20 14:34:52 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-12-12 14:17:08 +0100
commitb2bc24b0021d87fc0ee188f8a5e9c06d27d5eccc (patch)
tree5bca7e26e4c829258facc538ce40339f09ec2f07 /src/render/backend/shadervariables_p.h
parentc16a35679e58d3f1f69aee74b7ef478a9f8669dd (diff)
QGraphicsContext: UBO support implemented
Retrieve the Uniform Block index / RenderShaderData QNodeId pair in the QUniformPack. Assing the Uniform Block identified by its index to a binding point. Use that to binding point to bind the UBO contained in the RenderShaderData. Also added small comments in shadervariables and qgraphicshelpergl3 for clarity. Change-Id: I5eb9570f75f41953ad74529876ab842a48dc2a83 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/backend/shadervariables_p.h')
-rw-r--r--src/render/backend/shadervariables_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/backend/shadervariables_p.h b/src/render/backend/shadervariables_p.h
index ff3bd76a8..ecd0167dd 100644
--- a/src/render/backend/shadervariables_p.h
+++ b/src/render/backend/shadervariables_p.h
@@ -76,6 +76,7 @@ struct ShaderUniform
int m_blockIndex; // -1 is the default, >= 0 if uniform defined in uniform block
int m_arrayStride; // 0, only set if uniform defined in uniform block and if it's an array
int m_matrixStride; // 0, only set if uniform defined in uniform block and is a matrix
+ // size, offset and strides are in bytes
};
struct ShaderUniformBlock