summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 6a76ccce3..acc6abd57 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -5380,6 +5380,32 @@ namespace Slang
return emitSwizzle(type, base, elementCount, irElementIndices);
}
+ IRMetalSetVertex* IRBuilder::emitMetalSetVertex(
+ IRInst* index,
+ IRInst* vertex)
+ {
+ auto inst = createInst<IRMetalSetVertex>(this, kIROp_MetalSetVertex, getVoidType(), index, vertex);
+ addInst(inst);
+ return inst;
+ }
+
+ IRMetalSetPrimitive* IRBuilder::emitMetalSetPrimitive(
+ IRInst* index,
+ IRInst* primitive)
+ {
+ auto inst = createInst<IRMetalSetPrimitive>(this, kIROp_MetalSetVertex, getVoidType(), index, primitive);
+ addInst(inst);
+ return inst;
+ }
+
+ IRMetalSetIndices* IRBuilder::emitMetalSetIndices(
+ IRInst* index,
+ IRInst* indices)
+ {
+ auto inst = createInst<IRMetalSetIndices>(this, kIROp_MetalSetVertex, getVoidType(), index, indices);
+ addInst(inst);
+ return inst;
+ }
IRInst* IRBuilder::emitSwizzleSet(
IRType* type,