summaryrefslogtreecommitdiffstats
path: root/source/slang
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-01-31 08:55:40 -0500
committerGitHub <noreply@github.com>2020-01-31 08:55:40 -0500
commit52b78ad9bf99660593c49a8da0bdcec19016ee25 (patch)
treefbf2d7181799593fde31747ed98477bba37fce6c /source/slang
parentec056fd30c8b7357568e57cf9d52fc159b56602f (diff)
64 bit types doc (#1194)
* * For integer literals add postfix, and use unsigned/signed output appropriately * Extend GLSL extension handling by type, and for adding 64 bit int extensions * Added tests for int/uint64 types * Add explicit Int/UInt64 emit functions to avoid ambiguity. * Fix uint64_t intrinsics on CUDA/C++. * WIP 64 bit types documentation. * Testing int64 intrinsic support. * Dx12 Dxil sm6.0 does actually support int64_t.
Diffstat (limited to 'source/slang')
-rw-r--r--source/slang/slang-emit-cpp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp
index 99cc2f61c..93d1cf2dd 100644
--- a/source/slang/slang-emit-cpp.cpp
+++ b/source/slang/slang-emit-cpp.cpp
@@ -72,6 +72,7 @@ static UnownedStringSlice _getTypePrefix(IROp op)
case kIROp_UIntType: return UnownedStringSlice::fromLiteral("U32");
case kIROp_FloatType: return UnownedStringSlice::fromLiteral("F32");
case kIROp_Int64Type: return UnownedStringSlice::fromLiteral("I64");
+ case kIROp_UInt64Type: return UnownedStringSlice::fromLiteral("U64");
case kIROp_DoubleType: return UnownedStringSlice::fromLiteral("F64");
default: return UnownedStringSlice::fromLiteral("?");
}