summaryrefslogtreecommitdiff
path: root/source/slang/slang-type-system-shared.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-07-25 15:00:14 -0700
committerGitHub <noreply@github.com>2024-07-25 15:00:14 -0700
commitc9d89a40775a055873adf82cfb0ee1cb6bdcb93c (patch)
tree2438f353e87b30febe966ca23976793637c018d2 /source/slang/slang-type-system-shared.h
parent1343ab79fcd0ff9e5ffebbcf95414e51ab19e9cd (diff)
Overhaul IR lowering of pointer types. (#4710)
* Overhaul IR lowering of pointer types. * Propagate address space in IRBuilder. * Fixup. * Fix. * Fix. * Change how Ptr type is printed to text. * Fix.
Diffstat (limited to 'source/slang/slang-type-system-shared.h')
-rw-r--r--source/slang/slang-type-system-shared.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/slang-type-system-shared.h b/source/slang/slang-type-system-shared.h
index 2f467a05a..404c84cf4 100644
--- a/source/slang/slang-type-system-shared.h
+++ b/source/slang/slang-type-system-shared.h
@@ -58,6 +58,20 @@ FOREACH_BASE_TYPE(DEFINE_BASE_TYPE)
const int kStdlibTextureIsShadowParameterIndex = 6;
const int kStdlibTextureIsCombinedParameterIndex = 7;
const int kStdlibTextureFormatParameterIndex = 8;
+
+ enum class AddressSpace : uint64_t
+ {
+ Generic = 0x7fffffff,
+ ThreadLocal = 1,
+ Global = 2,
+ GroupShared = 3,
+ Uniform = 4,
+ // specific address space for payload data in metal
+ MetalObjectData = 5,
+
+ // Default address space for a user-defined pointer
+ UserPointer = 0x100000001ULL,
+ };
}
#endif