summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-10-21 16:27:40 -0700
committerGitHub <noreply@github.com>2021-10-21 16:27:40 -0700
commitdc991f7cb6b7f9f7271f4e557cfdd3e59804d1d3 (patch)
tree28d1a5974087e8d5c60645befe8808474332d3e5 /source/slang/slang-emit-hlsl.cpp
parent9304c2d04c9bfbae33cc328d404b24aba375aa4f (diff)
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 <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp2
1 files changed, 2 insertions, 0 deletions
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: