blob: 48e040e05c4ecb45fe685548b24412cd19d22aab [file] [log] [blame]
uint tint_bitcast_from_f16(vector<float16_t, 2> src) {
uint2 r = f32tof16(float2(src));
return asuint(uint((r.x & 0xffff) | ((r.y & 0xffff) << 16)));
}
[numthreads(1, 1, 1)]
void f() {
const vector<float16_t, 2> a = vector<float16_t, 2>(float16_t(1.0h), float16_t(2.0h));
const uint b = tint_bitcast_from_f16(a);
return;
}