From dc991f7cb6b7f9f7271f4e557cfdd3e59804d1d3 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 21 Oct 2021 16:27:40 -0700 Subject: Passing associated type arguments to existential parameters + packing for `bool`. (#1987) * Passing associated type arguments to existential parameters + packing for `bool`. * fix typo Co-authored-by: Yong He --- source/slang/slang-emit-hlsl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-emit-hlsl.cpp') diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index 9ebf204ac..dd5c18315 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -471,6 +471,7 @@ bool HLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu case BaseType::UInt16: case BaseType::UInt: case BaseType::UInt64: + case BaseType::Bool: // Because the intermediate type will always // be an integer type, we can convert to // another integer type of the same size @@ -512,6 +513,7 @@ bool HLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu case BaseType::UInt: case BaseType::Int: + case BaseType::Bool: break; case BaseType::UInt16: case BaseType::Int16: -- cgit v1.2.3