Traverse-Research / rspirv-reflect

🦀 Minimal SPIR-V reflection library.
https://traverseresearch.nl
Apache License 2.0
41 stars 10 forks source link

Return OperandIndexError instead of reading operand out of bounds #7

Closed MarijnS95 closed 4 years ago

MarijnS95 commented 4 years ago

In order to counter more unexpected panics, return OperandIndexError when an instruction does not have enough operands to read at the index specified to get_operand_at!.