blob: 186a8ece29771722a1394b57947be0b89830f1e7 [file] [log] [blame]
struct S {
int data[64];
};
cbuffer cbuffer_ubo : register(b0) {
uint4 ubo[1];
};
RWByteAddressBuffer result : register(u1);
[numthreads(1, 1, 1)]
void f() {
S s = (S)0;
result.Store(0u, asuint(s.data[asint(ubo[0u].x)]));
}