Traverse-Research / rspirv-reflect

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

Not all decoration annotations have a third operand #4

Closed MarijnS95 closed 4 years ago

MarijnS95 commented 4 years ago

Annotations such as [IdRef(x), Decoration(NonWritable)] will match the if let Decoration clause and attempt to unpack the third operand as LiteralInt32 even if it doesn't exist, resulting in an index out of bounds panic.