summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/types.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-04 13:09:51 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-06 16:12:51 +0100
commit2f646af255bf05bd50070deb83bb89e48509afc4 (patch)
tree59c4baf0f1e560845bb49de09a36a67c0fdfc491 /src/mbgl/gfx/types.hpp
parentd5816b6db265b36cf1360dc684725b0f7427d959 (diff)
downloadqtlocation-mapboxgl-2f646af255bf05bd50070deb83bb89e48509afc4.tar.gz
[core] make vertex descriptors constexpr
Diffstat (limited to 'src/mbgl/gfx/types.hpp')
-rw-r--r--src/mbgl/gfx/types.hpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/mbgl/gfx/types.hpp b/src/mbgl/gfx/types.hpp
index d1421dddb7..a9cb4e1ece 100644
--- a/src/mbgl/gfx/types.hpp
+++ b/src/mbgl/gfx/types.hpp
@@ -15,6 +15,45 @@ enum class PrimitiveType : uint8_t {
TriangleFan,
};
+enum class AttributeDataType : uint8_t {
+ Byte,
+ Byte2,
+ Byte3,
+ Byte4,
+
+ UByte,
+ UByte2,
+ UByte3,
+ UByte4,
+
+ Short,
+ Short2,
+ Short3,
+ Short4,
+
+ UShort,
+ UShort2,
+ UShort3,
+ UShort4,
+
+ Int,
+ Int2,
+ Int3,
+ Int4,
+
+ UInt,
+ UInt2,
+ UInt3,
+ UInt4,
+
+ Float,
+ Float2,
+ Float3,
+ Float4,
+
+ Invalid = 255,
+};
+
enum class ColorBlendEquationType : uint8_t {
Add,
Subtract,