mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-22 10:55:43 +01:00
Fix Reserve count for trinary ops.
This commit is contained in:
parent
634428758b
commit
393fccea5b
@ -24,7 +24,7 @@ namespace Sirit {
|
|||||||
|
|
||||||
#define DEFINE_TRINARY(opcode) \
|
#define DEFINE_TRINARY(opcode) \
|
||||||
Id Module::opcode(Id result_type, Id operand_1, Id operand_2, Id operand_3) { \
|
Id Module::opcode(Id result_type, Id operand_1, Id operand_2, Id operand_3) { \
|
||||||
code->Reserve(5); \
|
code->Reserve(6); \
|
||||||
return *code << OpId{spv::Op::opcode, result_type} << operand_1 << operand_2 << operand_3 \
|
return *code << OpId{spv::Op::opcode, result_type} << operand_1 << operand_2 << operand_3 \
|
||||||
<< EndOp{}; \
|
<< EndOp{}; \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user