From d98c4bd5cafaa1d611a09794883eb367e58e10b8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 30 Oct 2021 23:01:38 +0300 Subject: [PATCH] Add uint vector types to DataType --- source/backends/opengl/datatype_backend.cpp | 3 +++ source/core/datatype.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/source/backends/opengl/datatype_backend.cpp b/source/backends/opengl/datatype_backend.cpp index 9fd986ee..15709693 100644 --- a/source/backends/opengl/datatype_backend.cpp +++ b/source/backends/opengl/datatype_backend.cpp @@ -30,12 +30,15 @@ const MappedType type_map[] = { Msp::GL::FLOAT, GL_FLOAT }, { Msp::GL::DOUBLE, GL_DOUBLE }, { Msp::GL::BOOL, GL_BOOL }, + { Msp::GL::UINT_VEC2, GL_UNSIGNED_INT_VEC2 }, { Msp::GL::INT_VEC2, GL_INT_VEC2 }, { Msp::GL::FLOAT_VEC2, GL_FLOAT_VEC2 }, { Msp::GL::BOOL_VEC2, GL_BOOL_VEC2 }, + { Msp::GL::UINT_VEC3, GL_UNSIGNED_INT_VEC3 }, { Msp::GL::INT_VEC3, GL_INT_VEC3 }, { Msp::GL::FLOAT_VEC3, GL_FLOAT_VEC3 }, { Msp::GL::BOOL_VEC3, GL_BOOL_VEC3 }, + { Msp::GL::UINT_VEC4, GL_UNSIGNED_INT_VEC4 }, { Msp::GL::INT_VEC4, GL_INT_VEC4 }, { Msp::GL::FLOAT_VEC4, GL_FLOAT_VEC4 }, { Msp::GL::BOOL_VEC4, GL_BOOL_VEC4 }, diff --git a/source/core/datatype.h b/source/core/datatype.h index 22c72f6a..d2739c49 100644 --- a/source/core/datatype.h +++ b/source/core/datatype.h @@ -47,6 +47,9 @@ enum DataType INT_VEC2 = 0x1108, INT_VEC3 = 0x210C, INT_VEC4 = 0x3110, + UINT_VEC2 = 0x1008, + UINT_VEC3 = 0x200C, + UINT_VEC4 = 0x3010, BOOL_VEC2 = 0x1402, BOOL_VEC3 = 0x2403, BOOL_VEC4 = 0x3404, -- 2.45.2