blob: 01fe12c6dbaf45c0b1410764083db6eaa8245a5e [file] [log] [blame]
int tint_bitcast_from_f16(vector<float16_t, 2> src) {
uint2 r = f32tof16(float2(src));
return asint(((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));
int b = tint_bitcast_from_f16(a);
}