mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-26 17:26:08 +01:00
Add OpEmitStreamVertex and OpEndStreamPrimitive
This commit is contained in:
parent
dc47faf89f
commit
da093a04fe
2 changed files with 24 additions and 7 deletions
|
|
@ -15,14 +15,24 @@ Id Module::OpUndef(Id result_type) {
|
|||
return *code << OpId{spv::Op::OpUndef, result_type} << EndOp{};
|
||||
}
|
||||
|
||||
Id Module::OpEmitVertex() {
|
||||
void Module::OpEmitVertex() {
|
||||
code->Reserve(1);
|
||||
return *code << OpId{spv::Op::OpEmitVertex} << EndOp{};
|
||||
*code << spv::Op::OpEmitVertex << EndOp{};
|
||||
}
|
||||
|
||||
Id Module::OpEndPrimitive() {
|
||||
void Module::OpEndPrimitive() {
|
||||
code->Reserve(1);
|
||||
return *code << OpId{spv::Op::OpEndPrimitive} << EndOp{};
|
||||
*code << spv::Op::OpEndPrimitive << EndOp{};
|
||||
}
|
||||
|
||||
void Module::OpEmitStreamVertex(Id stream) {
|
||||
code->Reserve(2);
|
||||
*code << spv::Op::OpEmitStreamVertex << stream << EndOp{};
|
||||
}
|
||||
|
||||
void Module::OpEndStreamPrimitive(Id stream) {
|
||||
code->Reserve(2);
|
||||
*code << spv::Op::OpEndStreamPrimitive << stream << EndOp{};
|
||||
}
|
||||
|
||||
} // namespace Sirit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue