From 52b78ad9bf99660593c49a8da0bdcec19016ee25 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 31 Jan 2020 08:55:40 -0500 Subject: 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. --- source/slang/slang-emit-cpp.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source') 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("?"); } -- cgit v1.2.3