xemu/subprojects/SPIRV-Reflect/tests/variable_access/copy_array_1.slang

14 lines
192 B
Plaintext

struct Bar {
uint4 a;
uint b[4];
uint c;
};
[[vk::binding(0, 0)]]
RWStructuredBuffer<Bar> foo;
[shader("compute")]
void main() {
uint d[4] = {4, 5, 6, 7};
foo[0].b = d;
}