Download third_party/SPIRV-Reflect/tests/variable_access/copy_array_1.slang from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 192 Bytes
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/SPIRV-Reflect/tests/variable_access/copy_array_1.slang
- Command line
-
hf download hf://kimjunhan/vkgs-sim/third_party/SPIRV-Reflect/tests/variable_access/copy_array_1.slang
-
curl -L -o copy_array_1.slang https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/SPIRV-Reflect/tests/variable_access/copy_array_1.slang
192 Bytes
| 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; | |
| } |