X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=tests%2Fglsl%2Fbinary_operators.glsl;h=a67a5a72a4d7d56c1c214f5cfd62d25d24e51082;hp=edf36ebbee46ec833fd96ccc68a56c4fd5c34adc;hb=7fd67c4a1ed1c04b09c4bf58489a34809017ba8b;hpb=d4257f651ab8341d926d97d5c85d72ce64f8778b diff --git a/tests/glsl/binary_operators.glsl b/tests/glsl/binary_operators.glsl index edf36ebb..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*5.0*v1).xy+vec2(iv); - if(b) - ++v3; + ++v3; } */