diff options
author | Hai Nguyen <chaoticbob@me.com> | 2019-05-13 04:36:44 -0400 |
---|---|---|
committer | Hai Nguyen <chaoticbob@me.com> | 2019-05-13 04:36:44 -0400 |
commit | 8394d3eedd4e62aa1bd7229426256151962539a9 (patch) | |
tree | ccf4f72654896c4a5787af6c5e853ea404333040 /tests/hlsl | |
parent | a861e587bdc924c49272873bbc1744928bc51aac (diff) | |
download | SPIRV-Reflect-8394d3eedd4e62aa1bd7229426256151962539a9.tar.gz |
Applied suggested fix for Issue #64
Diffstat (limited to 'tests/hlsl')
-rw-r--r-- | tests/hlsl/array_of_structured_buffer.hlsl | 12 | ||||
-rw-r--r-- | tests/hlsl/array_of_structured_buffer.spv | bin | 0 -> 1152 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/hlsl/array_of_structured_buffer.hlsl b/tests/hlsl/array_of_structured_buffer.hlsl new file mode 100644 index 0000000..e84ce26 --- /dev/null +++ b/tests/hlsl/array_of_structured_buffer.hlsl @@ -0,0 +1,12 @@ +StructuredBuffer<float3> Input[16] : register(t0); +RWStructuredBuffer<float3> Output : register(u1); + +[numthreads(16, 16, 1)] +void main(uint3 tid : SV_DispatchThreadID) +{ + float3 value = (float3)0; + for (int i = 0; i < 16; ++i) { + value += Input[tid.x][i]; + } + Output[tid.x] = value; +}
\ No newline at end of file diff --git a/tests/hlsl/array_of_structured_buffer.spv b/tests/hlsl/array_of_structured_buffer.spv Binary files differnew file mode 100644 index 0000000..c1db8a1 --- /dev/null +++ b/tests/hlsl/array_of_structured_buffer.spv |