]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/builtin.cpp
Add support for uint types in GLSL
[libs/gl.git] / source / glsl / builtin.cpp
index f60d2a8a1d0736ff9d2d171b1a583fd39bedc879..12602707db80ca5043b6582f5b6917422cb2f477 100644 (file)
@@ -54,6 +54,14 @@ Module *get_builtins_module()
                type->kind = BasicTypeDeclaration::INT;
                shared_body.insert(insert_point, type);
 
+               type = new BasicTypeDeclaration;
+               type->source = BUILTIN_SOURCE;
+               type->name = "uint";
+               type->size = 32;
+               type->sign = false;
+               type->kind = BasicTypeDeclaration::INT;
+               shared_body.insert(insert_point, type);
+
                type = new BasicTypeDeclaration;
                type->source = BUILTIN_SOURCE;
                type->name = "float";