X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fbinary_operators.glsl;h=ad0f73d994d2bcc70a130055b7010abb96c9f997;hb=664421e9f9327f2c6ea5967930b386c142557e39;hp=a99b4446f9e2a22efcd9a8615e10f88a9d955b97;hpb=4414f0245005c8cfcd02b51ea394d612cc5776c4;p=libs%2Fgl.git diff --git a/tests/glsl/binary_operators.glsl b/tests/glsl/binary_operators.glsl index a99b4446..ad0f73d9 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; @@ -31,29 +31,18 @@ void main() ++v3; } +// Target API: Vulkan + /* 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; - i = i<>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; } */