Add EmitVertex and EndPrimitive

This commit is contained in:
ReinUsesLisp 2019-10-31 20:23:57 -03:00
parent b4eeadfd9b
commit 3067893923
2 changed files with 14 additions and 0 deletions

View file

@ -14,4 +14,12 @@ Id Module::OpUndef(Id result_type) {
return AddCode(std::make_unique<Op>(spv::Op::OpUndef, bound++, result_type));
}
Id Module::OpEmitVertex() {
return AddCode(std::make_unique<Op>(spv::Op::OpEmitVertex));
}
Id Module::OpEndPrimitive() {
return AddCode(std::make_unique<Op>(spv::Op::OpEndPrimitive));
}
} // namespace Sirit