dawn-cmake/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.fxc.hlsl

8 lines
174 B
HLSL
Raw Normal View History

[numthreads(1, 1, 1)]
void f() {
const int3 a = int3(1, 2, 3);
const int3 b = int3(4, 5, 6);
const int3 r = (a % (b == int3(0, 0, 0) ? int3(1, 1, 1) : b));
return;
}