diff options
author | Paul Lemire <paul.lemire.ecortex@kdab.com> | 2014-11-18 15:57:45 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-12-12 14:16:41 +0100 |
commit | 5472b6527ede7e0be6e7f71b50ebd103b6b94263 (patch) | |
tree | fd65c5064405393897b39932a93e276ba787b5cd /src/render/backend/shadervariables_p.h | |
parent | 7ee0e9720bac1fdbaf53af96ab519df39de801df (diff) |
QGraphicsHelperGL3/ShaderUniform: store array stride
If we have the array stride and the offset, we will be able to provide UBO
compatible with the shaders uniform blocks whether or not they have the
std140/std430 layout.
Change-Id: I964b267e07d654e6c0bc69c7478c93072088eeaf
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/backend/shadervariables_p.h b/src/render/backend/shadervariables_p.h index ff2536026..e9dd37de8 100644 --- a/src/render/backend/shadervariables_p.h +++ b/src/render/backend/shadervariables_p.h @@ -74,6 +74,7 @@ struct ShaderUniform int m_offset; // -1 default, >= 0 if uniform defined in uniform block int m_location; // -1 if uniform defined in a uniform block 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 }; struct ShaderUniformBlock |