diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-10-17 12:06:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-17 12:06:58 -0400 |
| commit | 1102c53513837e7f052730b847270f533876833f (patch) | |
| tree | 1cc6f02cb866966a282af91a805d6ff26de86181 /tests/compute/unbounded-array-of-array-syntax.slang | |
| parent | fb44993b38dd98261f20e718c3e282634902b391 (diff) | |
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.
Diffstat (limited to 'tests/compute/unbounded-array-of-array-syntax.slang')
| -rw-r--r-- | tests/compute/unbounded-array-of-array-syntax.slang | 4 |
1 files changed, 3 insertions, 1 deletions
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<int> outputBuffer; @@ -18,7 +20,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) int baseIndex = index >> 2; int innerIndex = index & 3; - RWStructuredBuffer<int> buffer = g_aoa[baseIndex]; + RWStructuredBuffer<int> buffer = g_aoa[NonUniformResourceIndex(baseIndex)]; // Get the size uint bufferCount, bufferStride; |
