summaryrefslogtreecommitdiff
path: root/source/slang/slang-intrinsic-expand.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-15 14:22:59 -0700
committerGitHub <noreply@github.com>2022-09-15 14:22:59 -0700
commita6032446c6bf7f64d1e201bf438a4c7605a3dbb4 (patch)
treea95267c52155e13699ff9aab38ab68353d76939e /source/slang/slang-intrinsic-expand.cpp
parent05f9aaf6a4ef246dcf89b00000a8e59e90c47662 (diff)
Language feature: pointer sized int types. (#2401)
* Language feature: pointer sized int types. * Fix. * small change to test. * Fix stdlib. * Fix. * Fix. * Add typedef for `size_t` in stdlib. * Fix test. * Add `intptr_t::size` constant. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-intrinsic-expand.cpp')
-rw-r--r--source/slang/slang-intrinsic-expand.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-intrinsic-expand.cpp b/source/slang/slang-intrinsic-expand.cpp
index b494e71e1..48186b94a 100644
--- a/source/slang/slang-intrinsic-expand.cpp
+++ b/source/slang/slang-intrinsic-expand.cpp
@@ -71,7 +71,9 @@ static BaseType _getBaseTypeFromScalarType(SlangScalarType type)
case SLANG_SCALAR_TYPE_INT16: return BaseType::Int16;
case SLANG_SCALAR_TYPE_UINT16: return BaseType::UInt16;
case SLANG_SCALAR_TYPE_INT64: return BaseType::Int64;
+ case SLANG_SCALAR_TYPE_INTPTR: return BaseType::IntPtr;
case SLANG_SCALAR_TYPE_UINT64: return BaseType::UInt64;
+ case SLANG_SCALAR_TYPE_UINTPTR: return BaseType::UIntPtr;
case SLANG_SCALAR_TYPE_INT8: return BaseType::Int8;
case SLANG_SCALAR_TYPE_UINT8: return BaseType::UInt8;
case SLANG_SCALAR_TYPE_FLOAT16: return BaseType::Half;