aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util/qsgshadersourcebuilder_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/util/qsgshadersourcebuilder_p.h')
-rw-r--r--src/quick/scenegraph/util/qsgshadersourcebuilder_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgshadersourcebuilder_p.h b/src/quick/scenegraph/util/qsgshadersourcebuilder_p.h
index 8def250d4f..63f2d78767 100644
--- a/src/quick/scenegraph/util/qsgshadersourcebuilder_p.h
+++ b/src/quick/scenegraph/util/qsgshadersourcebuilder_p.h
@@ -44,6 +44,7 @@
#include <private/qtquickglobal_p.h>
+#include <QtGui/qsurfaceformat.h>
#include <QtCore/qbytearray.h>
QT_BEGIN_NAMESPACE
@@ -64,11 +65,15 @@ public:
void appendSource(const QByteArray &source);
void appendSourceFile(const QString &fileName);
+ void addDefinition(const QByteArray &definition);
+ void removeVersion();
protected:
virtual QString resolveShaderPath(const QString &path) const;
private:
+ QSurfaceFormat::OpenGLContextProfile contextProfile() const;
+
QByteArray m_source;
};