summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-torch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-torch.cpp')
-rw-r--r--source/slang/slang-emit-torch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-emit-torch.cpp b/source/slang/slang-emit-torch.cpp
index 7cd793ec1..54408aa80 100644
--- a/source/slang/slang-emit-torch.cpp
+++ b/source/slang/slang-emit-torch.cpp
@@ -118,6 +118,13 @@ bool TorchCppSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo&
emitStringLiteral(getUnmangledName(inst->getOperand(0)));
m_writer->emit(", ");
emitTorchScalarTypeName(m_writer, inst->getOperand(0)->getDataType());
+ m_writer->emit(", ");
+
+ if (as<IRVectorType>(inst->getOperand(0)->getDataType()))
+ m_writer->emit("true");
+ else
+ m_writer->emit("false");
+
m_writer->emit(")");
return true;
}