1 | // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB). |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DRENDER_QSHADERPROGRAMBUILDER_P_H |
5 | #define QT3DRENDER_QSHADERPROGRAMBUILDER_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <private/qnode_p.h> |
19 | #include <Qt3DRender/private/qt3drender_global_p.h> |
20 | #include <Qt3DRender/qshaderprogram.h> |
21 | #include <Qt3DRender/qshaderprogrambuilder.h> |
22 | |
23 | #include <QtCore/qurl.h> |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | namespace Qt3DRender { |
28 | |
29 | class Q_3DRENDERSHARED_PRIVATE_EXPORT QShaderProgramBuilderPrivate : public Qt3DCore::QNodePrivate |
30 | { |
31 | public: |
32 | QShaderProgramBuilderPrivate(); |
33 | |
34 | Q_DECLARE_PUBLIC(QShaderProgramBuilder) |
35 | QShaderProgram *m_shaderProgram; |
36 | QStringList m_enabledLayers; |
37 | QUrl m_vertexShaderGraph; |
38 | QUrl m_tessControlShaderGraph; |
39 | QUrl m_tessEvalShaderGraph; |
40 | QUrl m_geometryShaderGraph; |
41 | QUrl m_fragmentShaderGraph; |
42 | QUrl m_computeShaderGraph; |
43 | QByteArray m_vertexShaderCode; |
44 | QByteArray m_tessControlShaderCode; |
45 | QByteArray m_tessEvalShaderCode; |
46 | QByteArray m_geometryShaderCode; |
47 | QByteArray m_fragmentShaderCode; |
48 | QByteArray m_computeShaderCode; |
49 | |
50 | void setShaderCode(const QByteArray &code, QShaderProgram::ShaderType type); |
51 | }; |
52 | |
53 | } // namespace Qt3DRender |
54 | |
55 | QT_END_NAMESPACE |
56 | |
57 | #endif // QT3DRENDER_QSHADERPROGRAMBUILDER_P_H |
58 | |