Add uint type (big change). For both int/uint, add the operators >>, <<, &, |, and ^. Also added unsigned literals and uint precision support. Also fixed how int/uint literal underflow/overflow is handled.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21054 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -10,7 +10,11 @@ lowp vec2 foo(mediump vec3 mv3)
|
||||
|
||||
int global_medium;
|
||||
|
||||
precision highp int;
|
||||
precision highp int;
|
||||
precision highp ivec2; // ERROR
|
||||
precision mediump int[2]; // ERROR
|
||||
precision lowp uint; // ERROR
|
||||
precision mediump vec4; // ERROR
|
||||
|
||||
int global_high;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user