diff options
Diffstat (limited to 'source/slang/slang-emit-cuda.cpp')
| -rw-r--r-- | source/slang/slang-emit-cuda.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cuda.cpp b/source/slang/slang-emit-cuda.cpp index 8657b3707..bb6941907 100644 --- a/source/slang/slang-emit-cuda.cpp +++ b/source/slang/slang-emit-cuda.cpp @@ -123,6 +123,18 @@ UnownedStringSlice CUDASourceEmitter::getVectorPrefix(IROp op) case kIROp_UInt64Type: return UnownedStringSlice("ulonglong"); +#if SLANG_PTR_IS_64 + case kIROp_IntPtrType: + return UnownedStringSlice("longlong"); + case kIROp_UIntPtrType: + return UnownedStringSlice("ulonglong"); +#else + case kIROp_IntPtrType: + return UnownedStringSlice("int"); + case kIROp_UIntPtrType: + return UnownedStringSlice("uint"); +#endif + case kIROp_HalfType: return UnownedStringSlice("__half"); |
