X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fbinary_operators.glsl;h=a67a5a72a4d7d56c1c214f5cfd62d25d24e51082;hb=4791fe8e6451aa6ce62e530fe12904f5cfc112eb;hp=8e2520c83c7b9458584b6d92f1da51c0d2264ad2;hpb=f639d088c478fe5d266f9f5779928735b5176976;p=libs%2Fgl.git diff --git a/tests/glsl/binary_operators.glsl b/tests/glsl/binary_operators.glsl index 8e2520c8..a67a5a72 100644 --- a/tests/glsl/binary_operators.glsl +++ b/tests/glsl/binary_operators.glsl @@ -1,7 +1,7 @@ #pragma MSP stage(vertex) void main() { - int i = 0; + int i = 5; i = i-3; float f = 0; f = i+1; @@ -14,6 +14,10 @@ void main() j = j<<(i%5); b = b || i!=j; + ivec2 iv; + i = i<>i; + mat4x2 m1; mat2x4 m2; mat4 m3 = m2*m1*5; @@ -21,7 +25,7 @@ void main() vec4 v2; v2 = m3*v1; vec2 v3; - v3 = v1*m2+v2.xy; + v3 = v1*m2+v2.xy+iv; if(b) ++v3; @@ -30,23 +34,13 @@ void main() /* Expected output: vertex void main() { - int i = 0; - i = i-3; - float f; - f = float(i+1); - f = (f+float(i))*(f/float(i)); - bool b = float(i)=f; - b = b&&float(i)==f; - int j = 1; - i = i|1; - j = j<<(i%5); - b = b||i!=j; + ivec2 iv; + iv = iv>>ivec2(768); mat4x2 m1; mat2x4 m2; vec4 v1 = vec4(1.0); vec2 v3; - v3 = v1*m2+(m2*m1*float(5)*v1).xy; - if(b) - ++v3; + v3 = v1*m2+(m2*m1*5.0*v1).xy+vec2(iv); + ++v3; } */