blob: 99d0685719617ba13c06443376cfae006a086485 [file] [log] [blame]
SKIP: FAILED
vector<float16_t, 4> tint_bitcast_to_f16(uint2 src) {
uint2 v = asuint(src);
float2 t_low = f16tof32(v & 0xffff);
float2 t_high = f16tof32((v >> 16) & 0xffff);
return vector<float16_t, 4>(t_low.x, t_high.x, t_low.y, t_high.y);
}
[numthreads(1, 1, 1)]
void f() {
const uint2 a = uint2(1073757184u, 3288351232u);
const vector<float16_t, 4> b = tint_bitcast_to_f16(a);
return;
}
FXC validation failure:
D:\Projects\RampUp\dawn\test\tint\expressions\bitcast\Shader@0x0000025566ACBF30(1,8-16): error X3000: syntax error: unexpected token 'float16_t'