I can easily reproduce the following assert once in a while during window resizing.
[MTLDebugTexture setPurgeableState:]:704: failed assertion `Set Purgeable Stage Validation
Cannot set purgeability state to volatile while resource is in use by a command buffer.
’
I’m reproducing this in the standalone build of the AudioDemoPlugin (wrapping to a standalone app/running directly from xcode and just resizing) with the multiple paint calls. (only with it turned it)
Hi thanks for looking at this.
Even with this commit:
The AudioDemoPlugin now does not reproduce the issue but my project does.
Do you have any idea how I can debug this better on my end?
The MTLTexture object doesn’t give me much hints and the stack seems to be now the same as it was (but only happens in my project) instead of the sample plugin.
While my code is fully open-source, it has a lot of component layers stacked on each other so it might explain why I’m still able to reproduce this and also why it might be wiser to make a smaller example for reproducing this.