diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-06-12 18:16:51 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-06-13 19:21:46 +0200 |
commit | 7f8f75b1c9d50fe02d0112717de5b4a79e1e44ce (patch) | |
tree | 7c68af71d5e6aa5c6628b94e6d2b039184b1df7d /src/mbgl/gl/types.hpp | |
parent | 9a05ebac5202b6e4b59f43707b96b4acd4c00b7b (diff) | |
download | qtlocation-mapboxgl-7f8f75b1c9d50fe02d0112717de5b4a79e1e44ce.tar.gz |
[core] verify that the active uniform types match our assumed types
Diffstat (limited to 'src/mbgl/gl/types.hpp')
-rw-r--r-- | src/mbgl/gl/types.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mbgl/gl/types.hpp b/src/mbgl/gl/types.hpp index 31e3076f67..74ce67fba6 100644 --- a/src/mbgl/gl/types.hpp +++ b/src/mbgl/gl/types.hpp @@ -76,5 +76,25 @@ constexpr bool operator!=(const PixelStorageType& a, const PixelStorageType& b) using BinaryProgramFormat = uint32_t; +enum class UniformDataType : uint32_t { + Float = 0x1406, + FloatVec2 = 0x8B50, + FloatVec3 = 0x8B51, + FloatVec4 = 0x8B52, + Int = 0x1404, + IntVec2 = 0x8B53, + IntVec3 = 0x8B54, + IntVec4 = 0x8B55, + Bool = 0x8B56, + BoolVec2 = 0x8B57, + BoolVec3 = 0x8B58, + BoolVec4 = 0x8B59, + FloatMat2 = 0x8B5A, + FloatMat3 = 0x8B5B, + FloatMat4 = 0x8B5C, + Sampler2D = 0x8B5E, + SamplerCube = 0x8B60, +}; + } // namespace gl } // namespace mbgl |