dawn-cmake/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.dxc.hlsl

12 lines
272 B
HLSL

float3 tint_float_mod(float3 lhs, float3 rhs) {
return (lhs - (trunc((lhs / rhs)) * rhs));
}
[numthreads(1, 1, 1)]
void f() {
const float3 a = float3(1.0f, 2.0f, 3.0f);
const float3 b = float3(4.0f, 5.0f, 6.0f);
const float3 r = tint_float_mod(a, b);
return;
}