I started getting the following error today after adding some complexity to my shader:
Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
I found that this has nothing to do with the actual code added, but with the fact I added more variables and function calls. I tried to remove other difficulties from the shader and the error was removed. Another thing I discovered is that the problem is also fixed when I set the quick math to false.
My first guess is that there is some restriction on the number of variables when fast math is enabled. Is there such a limit? Any other ideas why such an error might occur?
source
share