dawn-cmake/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.dxc.hlsl

12 lines
202 B
HLSL
Raw Normal View History

uint tint_div(uint lhs, uint rhs) {
return (lhs / ((rhs == 0u) ? 1u : rhs));
}
[numthreads(1, 1, 1)]
void f() {
const uint a = 1u;
const uint b = 2u;
const uint r = tint_div(a, b);
return;
}