diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-11-07 11:57:58 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-07 11:57:58 -0800 |
| commit | a54364303241e3cd7c3d075ee1dd4164915d939f (patch) | |
| tree | b7560ff41a43cda235ab7db8a19fd2371e3f7ba8 /source/slang/emit.cpp | |
| parent | ccea5702442a7a8303e6735a038be86939c1ce7a (diff) | |
| parent | d1b45f3059e100d096327eb178c1bac365e564f1 (diff) | |
Merge branch 'master' into falcor-integration-work
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 17 |
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; |
