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 /prelude/slang-cpp-types.h | |
| 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 'prelude/slang-cpp-types.h')
| -rw-r--r-- | prelude/slang-cpp-types.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<T, COLS> 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 |
