summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-type-system-shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-type-system-shared.h')
-rw-r--r--source/slang/slang-type-system-shared.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/slang/slang-type-system-shared.h b/source/slang/slang-type-system-shared.h
index d7bd43122..3390c3b80 100644
--- a/source/slang/slang-type-system-shared.h
+++ b/source/slang/slang-type-system-shared.h
@@ -22,6 +22,10 @@ namespace Slang
X(Char) \
X(IntPtr) \
X(UIntPtr) \
+ X(CountOfPrimitives) \
+ X(AddressSpace) \
+ X(MemoryScope) \
+ X(AccessQualifier) \
/* end */
enum class BaseType
@@ -114,6 +118,26 @@ enum class AddressSpace : uint64_t
// Default address space for a user-defined pointer
UserPointer = 0x100000001ULL,
};
+
+// https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#_scope_id
+// must be 32 bit to match SPIR-V
+enum class MemoryScope : int32_t
+{
+ CrossDevice = 0,
+ Device = 1,
+ Workgroup = 2,
+ Subgroup = 3,
+ Invocation = 4,
+ QueueFamily = 5,
+ ShaderCall = 6,
+};
+
+enum class AccessQualifier : uint64_t
+{
+ ReadWrite = 0,
+ Read = 1,
+};
+
} // namespace Slang
#endif