mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-05-05 22:17:42 +02:00
Add OpUnreachable
This commit is contained in:
@@ -67,6 +67,11 @@ void Module::OpReturn() {
|
||||
*code << spv::Op::OpReturn << EndOp{};
|
||||
}
|
||||
|
||||
void Module::OpUnreachable() {
|
||||
code->Reserve(1);
|
||||
*code << spv::Op::OpUnreachable << EndOp{};
|
||||
}
|
||||
|
||||
Id Module::OpReturnValue(Id value) {
|
||||
code->Reserve(2);
|
||||
return *code << spv::Op::OpReturnValue << value << EndOp{};
|
||||
|
||||
Reference in New Issue
Block a user