| cbuffer cbuffer_u : register(b0, space0) { | |
| uint4 u[1]; | |
| }; | |
| [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); | |
| const vector<float16_t, 3> x = vector<float16_t, 3>(ubo_load_xz[0], ubo_load_y, ubo_load_xz[1]); | |
| return; | |
| } |