From 8394d3eedd4e62aa1bd7229426256151962539a9 Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Mon, 13 May 2019 04:36:44 -0400 Subject: Applied suggested fix for Issue #64 --- tests/hlsl/array_of_structured_buffer.hlsl | 12 ++++++++++++ tests/hlsl/array_of_structured_buffer.spv | Bin 0 -> 1152 bytes 2 files changed, 12 insertions(+) create mode 100644 tests/hlsl/array_of_structured_buffer.hlsl create mode 100644 tests/hlsl/array_of_structured_buffer.spv (limited to 'tests/hlsl') 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 Input[16] : register(t0); +RWStructuredBuffer 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 new file mode 100644 index 0000000..c1db8a1 Binary files /dev/null and b/tests/hlsl/array_of_structured_buffer.spv differ -- cgit v1.2.3