blob: 61d7cb92706e271148f567b34cc76f85e212bbf3 [file]
RWByteAddressBuffer sb_rw0 : register(u0);
RWByteAddressBuffer sb_rw1 : register(u1);
[numthreads(1, 1, 1)]
void compute_main() {
uint2 in_vec = uint2(1u, 2u);
uint2 v = in_vec;
uint64_t v_1 = uint64_t(v.x);
uint64_t v_2 = uint64_t(v.y);
sb_rw0.InterlockedMax64(8u, ((v_2 << uint64_t(32u)) | v_1));
uint v_3 = 0u;
sb_rw1.GetDimensions(v_3);
uint v_4 = ((v_3 / 8u) - 1u);
uint v_5 = (min(uint(int(1)), v_4) * 8u);
uint2 v_6 = in_vec;
uint64_t v_7 = uint64_t(v_6.x);
uint64_t v_8 = uint64_t(v_6.y);
sb_rw1.InterlockedMax64((0u + v_5), ((v_8 << uint64_t(32u)) | v_7));
}