From 1102c53513837e7f052730b847270f533876833f Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 17 Oct 2019 12:06:58 -0400 Subject: Feature/gpu unbound array of array (#1083) * Simple testing of unbounded array of array on GPU. * Fix problem on CPU targets around NonUniformResourceIndex Use the unbounded-array-of-array-syntax test for CPU and GPU tests. --- tests/compute/unbounded-array-of-array-syntax.slang | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/compute/unbounded-array-of-array-syntax.slang') diff --git a/tests/compute/unbounded-array-of-array-syntax.slang b/tests/compute/unbounded-array-of-array-syntax.slang index fdc04c95e..df1074896 100644 --- a/tests/compute/unbounded-array-of-array-syntax.slang +++ b/tests/compute/unbounded-array-of-array-syntax.slang @@ -1,5 +1,7 @@ //DISABLE_TEST:CPU_REFLECTION: -profile cs_5_0 -entry computeMain -target cpp //TEST(compute):COMPARE_COMPUTE_EX:-cpu -compute +//TEST:CROSS_COMPILE:-target dxbc-assembly -entry computeMain -profile cs_5_1 +//TEST:CROSS_COMPILE:-target spirv-assembly -entry computeMain -profile cs_5_1 //TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0], stride=4):dxbinding(0),glbinding(0),out,name outputBuffer RWStructuredBuffer outputBuffer; @@ -18,7 +20,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) int baseIndex = index >> 2; int innerIndex = index & 3; - RWStructuredBuffer buffer = g_aoa[baseIndex]; + RWStructuredBuffer buffer = g_aoa[NonUniformResourceIndex(baseIndex)]; // Get the size uint bufferCount, bufferStride; -- cgit v1.2.3