Open iliasHDZ opened 1 week ago
Could you provide more information about the crash? Where does it crash? What does the stack trace look like? What did you do to fix it?
It crashes right here: https://github.com/neobrain/nihstro/blob/f4d8659decbfe5d234f04134b5002b82dc515a44/src/disassembler.cpp#L211
The instr.common.operand_desc_id
was some invalid number which is why it crashed. I fixed it by checking if it was a valid index. If not, it skips to the next instruction. There is probably alot of stuff that I'm missing but I don't know much about this code so this was the quick and dirty approach I took.
The disassembler crashes here:
I was able to kindof fix it but I don't think i fixed it correctly.
Here's the shader code: shadercode.zip