X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fbinary_operators.glsl;h=a67a5a72a4d7d56c1c214f5cfd62d25d24e51082;hb=7fd67c4a1ed1c04b09c4bf58489a34809017ba8b;hp=d84962861e689408111836121181a1453c08e3e2;hpb=fe980fbd898645eba1ac06a5061b3a48db4638b0;p=libs%2Fgl.git diff --git a/tests/glsl/binary_operators.glsl b/tests/glsl/binary_operators.glsl index d8496286..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; @@ -34,26 +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<>ivec2(i); + iv = iv>>ivec2(768); mat4x2 m1; mat2x4 m2; vec4 v1 = vec4(1.0); vec2 v3; - v3 = v1*m2+(m2*m1*float(5)*v1).xy+vec2(iv); - if(b) - ++v3; + v3 = v1*m2+(m2*m1*5.0*v1).xy+vec2(iv); + ++v3; } */