blob: 2e1125a1c8d23585d769340ebbc58a4cf9617637 [file] [log] [blame]
cbuffer cbuffer_u : register(b0) {
uint4 u[1];
};
RWByteAddressBuffer s : register(u1);
[numthreads(1, 1, 1)]
void main() {
uint2 ubo_load = u[0].xy;
vector<float16_t, 2> ubo_load_xz = vector<float16_t, 2>(f16tof32(ubo_load & 0xFFFF));
float16_t ubo_load_y = f16tof32(ubo_load[0] >> 16);
vector<float16_t, 3> x = vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]);
s.Store<vector<float16_t, 3> >(0u, x);
return;
}