| 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_QSHADERLANGUAGE_P_H |
| 5 | #define QT3DRENDER_QSHADERLANGUAGE_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 purely as an |
| 12 | // implementation detail. 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 <Qt3DRender/private/qt3drender_global_p.h> |
| 19 | |
| 20 | #include <QtCore/qmetatype.h> |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | namespace QShaderLanguage |
| 25 | { |
| 26 | Q_NAMESPACE_EXPORT(Q_3DRENDERSHARED_PRIVATE_EXPORT) |
| 27 | |
| 28 | enum StorageQualifier : char { |
| 29 | Const = 1, |
| 30 | Input, |
| 31 | BuiltIn, |
| 32 | Output, |
| 33 | Uniform |
| 34 | }; |
| 35 | Q_ENUM_NS(StorageQualifier) |
| 36 | |
| 37 | enum VariableType : int { |
| 38 | Bool = 1, |
| 39 | Int, |
| 40 | Uint, |
| 41 | Float, |
| 42 | Double, |
| 43 | Vec2, |
| 44 | Vec3, |
| 45 | Vec4, |
| 46 | DVec2, |
| 47 | DVec3, |
| 48 | DVec4, |
| 49 | BVec2, |
| 50 | BVec3, |
| 51 | BVec4, |
| 52 | IVec2, |
| 53 | IVec3, |
| 54 | IVec4, |
| 55 | UVec2, |
| 56 | UVec3, |
| 57 | UVec4, |
| 58 | Mat2, |
| 59 | Mat3, |
| 60 | Mat4, |
| 61 | Mat2x2, |
| 62 | Mat2x3, |
| 63 | Mat2x4, |
| 64 | Mat3x2, |
| 65 | Mat3x3, |
| 66 | Mat3x4, |
| 67 | Mat4x2, |
| 68 | Mat4x3, |
| 69 | Mat4x4, |
| 70 | DMat2, |
| 71 | DMat3, |
| 72 | DMat4, |
| 73 | DMat2x2, |
| 74 | DMat2x3, |
| 75 | DMat2x4, |
| 76 | DMat3x2, |
| 77 | DMat3x3, |
| 78 | DMat3x4, |
| 79 | DMat4x2, |
| 80 | DMat4x3, |
| 81 | DMat4x4, |
| 82 | Sampler1D, |
| 83 | Sampler2D, |
| 84 | Sampler3D, |
| 85 | SamplerCube, |
| 86 | Sampler2DRect, |
| 87 | Sampler2DMs, |
| 88 | SamplerBuffer, |
| 89 | Sampler1DArray, |
| 90 | Sampler2DArray, |
| 91 | Sampler2DMsArray, |
| 92 | SamplerCubeArray, |
| 93 | Sampler1DShadow, |
| 94 | Sampler2DShadow, |
| 95 | Sampler2DRectShadow, |
| 96 | Sampler1DArrayShadow, |
| 97 | Sampler2DArrayShadow, |
| 98 | SamplerCubeShadow, |
| 99 | SamplerCubeArrayShadow, |
| 100 | ISampler1D, |
| 101 | ISampler2D, |
| 102 | ISampler3D, |
| 103 | ISamplerCube, |
| 104 | ISampler2DRect, |
| 105 | ISampler2DMs, |
| 106 | ISamplerBuffer, |
| 107 | ISampler1DArray, |
| 108 | ISampler2DArray, |
| 109 | ISampler2DMsArray, |
| 110 | ISamplerCubeArray, |
| 111 | USampler1D, |
| 112 | USampler2D, |
| 113 | USampler3D, |
| 114 | USamplerCube, |
| 115 | USampler2DRect, |
| 116 | USampler2DMs, |
| 117 | USamplerBuffer, |
| 118 | USampler1DArray, |
| 119 | USampler2DArray, |
| 120 | USampler2DMsArray, |
| 121 | USamplerCubeArray |
| 122 | }; |
| 123 | Q_ENUM_NS(VariableType) |
| 124 | } |
| 125 | |
| 126 | QT_END_NAMESPACE |
| 127 | |
| 128 | #endif // QT3DRENDER_QSHADERLANGUAGE_P_H |
| 129 | |