mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-22 18:43:57 +00:00
Assert when an OpId has an invalid result type
This commit is contained in:
parent
200310e8fa
commit
20d75babd0
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ namespace Sirit {
|
||||||
class Declarations;
|
class Declarations;
|
||||||
|
|
||||||
struct OpId {
|
struct OpId {
|
||||||
|
OpId(spv::Op opcode_) : opcode{opcode_} {}
|
||||||
|
OpId(spv::Op opcode_, Id result_type_) : opcode{opcode_}, result_type{result_type_} {
|
||||||
|
assert(result_type.value != 0);
|
||||||
|
}
|
||||||
|
|
||||||
spv::Op opcode{};
|
spv::Op opcode{};
|
||||||
Id result_type{};
|
Id result_type{};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue