Download third_party/SPIRV-Reflect/tests/variable_access/copy_array_3.slang from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/SPIRV-Reflect/tests/variable_access/copy_array_3.slang
- Command line
-
hf download hf://kimjunhan/vkgs-sim/third_party/SPIRV-Reflect/tests/variable_access/copy_array_3.slang
-
curl -L -o copy_array_3.slang https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/SPIRV-Reflect/tests/variable_access/copy_array_3.slang
286 Bytes
| struct Bar1 { | |
| uint4 a; | |
| uint b[4]; | |
| uint c; | |
| }; | |
| struct Bar2 { | |
| uint4 d; | |
| uint e[4]; | |
| uint f; | |
| }; | |
| [[vk::binding(0, 0)]] | |
| RWStructuredBuffer<Bar1> foo1; | |
| [[vk::binding(0, 1)]] | |
| RWStructuredBuffer<Bar2> foo2; | |
| [shader("compute")] | |
| void main() { | |
| foo1[0].b = foo2[0].e; | |
| } |