summaryrefslogtreecommitdiff
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 617e25d71..9fda630bf 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -5104,6 +5104,13 @@ emitDeclImpl(decl, nullptr);
}
break;
+ case kIROp_Neg:
+ {
+ emit("-");
+ emitIROperand(ctx, inst->getArg(0));
+ }
+ break;
+
case kIROp_Sample:
emitIROperand(ctx, inst->getArg(0));
emit(".Sample(");
@@ -5226,6 +5233,16 @@ emitDeclImpl(decl, nullptr);
}
break;
+ case kIROp_Select:
+ {
+ emitIROperand(ctx, inst->getArg(0));
+ emit(" ? ");
+ emitIROperand(ctx, inst->getArg(1));
+ emit(" : ");
+ emitIROperand(ctx, inst->getArg(2));
+ }
+ break;
+
default:
emit("/* unhandled */");
break;