blob: a4f64a2e6f55e35c3d94f4cdcab825278ad8f509 [file] [log] [blame]
SKIP: FAILED
uint tint_bitcast_from_f16(vector<float16_t, 2> src) {
uint2 r = f32tof16(float2(src));
return ((r.x & 65535u) | ((r.y & 65535u) << 16u));
}
[numthreads(1, 1, 1)]
void f() {
vector<float16_t, 2> a = vector<float16_t, 2>(float16_t(1.0h), float16_t(2.0h));
uint b = tint_bitcast_from_f16(a);
}
FXC validation failure:
c:\src\dawn\Shader@0x0000023C44500800(2,35-43): error X3000: syntax error: unexpected token 'float16_t'
c:\src\dawn\Shader@0x0000023C44500800(3,29-31): error X3004: undeclared identifier 'src'
c:\src\dawn\Shader@0x0000023C44500800(3,22-32): error X3014: incorrect number of arguments to numeric-type constructor