Add support for the unsigned integer scalar type to the shader translator.
TRAC #23080
Signed-off-by: Nicolas Capens
Signed-off-by: Shannon Woods
Author: Jamie Madill
git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2403 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Shader.cpp b/src/libGLESv2/Shader.cpp
index 53731b9..7427949 100644
--- a/src/libGLESv2/Shader.cpp
+++ b/src/libGLESv2/Shader.cpp
@@ -533,6 +533,10 @@
{
return GL_INT_VEC4;
}
+ else if (type == "uint")
+ {
+ return GL_UNSIGNED_INT;
+ }
else UNREACHABLE();
return GL_NONE;
@@ -560,6 +564,7 @@
varyingPriorities[GL_INT_VEC2] = 111;
varyingPriorities[GL_FLOAT] = 120;
varyingPriorities[GL_INT] = 125;
+ varyingPriorities[GL_UNSIGNED_INT] = 130;
}
// true if varying x has a higher priority in packing than y