summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qshader_p_p.h
diff options
context:
space:
mode:
authorThe Qt Project <gerrit-noreply@qt-project.org>2019-11-25 14:49:13 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2019-11-25 14:49:13 +0000
commitbc1cae774ad8cc084a98cb37d363770efbde025c (patch)
treeaeb16a5fa9093632eba6143fe53ef1dad3e383a4 /src/gui/rhi/qshader_p_p.h
parent8d35ad8726f44c4e853b5a192203ffcbbd2476e1 (diff)
parent26e876912435bdafbca2b425af43824d7ec5b876 (diff)
Merge "Merge remote-tracking branch 'origin/dev' into wip/cmake" into wip/cmake
Diffstat (limited to 'src/gui/rhi/qshader_p_p.h')
-rw-r--r--src/gui/rhi/qshader_p_p.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/rhi/qshader_p_p.h b/src/gui/rhi/qshader_p_p.h
index 6473590e95..8c89f2b45f 100644
--- a/src/gui/rhi/qshader_p_p.h
+++ b/src/gui/rhi/qshader_p_p.h
@@ -57,6 +57,10 @@ QT_BEGIN_NAMESPACE
struct Q_GUI_EXPORT QShaderPrivate
{
+ static const int QSB_VERSION = 3;
+ static const int QSB_VERSION_WITH_BINARY_JSON = 2;
+ static const int QSB_VERSION_WITHOUT_BINDINGS = 1;
+
QShaderPrivate()
: ref(1)
{
@@ -64,9 +68,11 @@ struct Q_GUI_EXPORT QShaderPrivate
QShaderPrivate(const QShaderPrivate *other)
: ref(1),
+ qsbVersion(other->qsbVersion),
stage(other->stage),
desc(other->desc),
- shaders(other->shaders)
+ shaders(other->shaders),
+ bindings(other->bindings)
{
}
@@ -74,9 +80,11 @@ struct Q_GUI_EXPORT QShaderPrivate
static const QShaderPrivate *get(const QShader *s) { return s->d; }
QAtomicInt ref;
+ int qsbVersion = QSB_VERSION;
QShader::Stage stage = QShader::VertexStage;
QShaderDescription desc;
QHash<QShaderKey, QShaderCode> shaders;
+ QHash<QShaderKey, QShader::NativeResourceBindingMap> bindings;
};
QT_END_NAMESPACE