summaryrefslogtreecommitdiff
path: root/prelude
diff options
context:
space:
mode:
Diffstat (limited to 'prelude')
-rw-r--r--prelude/slang-cpp-types.h4
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