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. --- prelude/slang-cpp-types.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'prelude') diff --git a/prelude/slang-cpp-types.h b/prelude/slang-cpp-types.h index c8f6357a2..67db607f6 100644 --- a/prelude/slang-cpp-types.h +++ b/prelude/slang-cpp-types.h @@ -85,6 +85,10 @@ struct Matrix Vector rows[ROWS]; }; +// We can just map `NonUniformResourceIndex` type directly to the index type on CPU, as CPU does not require +// any special handling around such accesses. +typedef size_t NonUniformResourceIndex; + // ----------------------------- ResourceType ----------------------------------------- // https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-structuredbuffer-getdimensions -- cgit v1.2.3