summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 311f903cc..5cd0ea832 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -4875,6 +4875,7 @@ emitDeclImpl(decl, nullptr);
case kIROp_FieldAddress:
case kIROp_getElementPtr:
case kIROp_specialize:
+ case kIROp_BufferElementRef:
return true;
}
@@ -5516,6 +5517,7 @@ emitDeclImpl(decl, nullptr);
break;
case kIROp_BufferLoad:
+ case kIROp_BufferElementRef:
emitIROperand(ctx, inst->getArg(0));
emit("[");
emitIROperand(ctx, inst->getArg(1));