]> 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 9e0244df1cbd71efe3acb6c915fdda33d8e7ea64..12602707db80ca5043b6582f5b6917422cb2f477 100644 (file)
@@ -2,7 +2,6 @@
 #include <msp/io/seekable.h>
 #include "builtin.h"
 #include "parser.h"
-#include "visitor.h"
 
 using namespace std;
 
@@ -55,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";