I have a channel shader, which reproducibly crashes when run in the debugger in S22 and R23. However, the crash does not occur in my code, though it looks like my shader has something to do with it. Interestingly, the very same code runs smoothly in R20 and R21, and does not cause any strange behaviour there. It happens only when the material that has the shader is applied to an object in the scene.
The call stack shows this:
And the output window in the debugger says:
-[MTLDebugBlitCommandEncoder validateCopyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:]:718: failed assertion 'destinationLevel(1) must be < [destinationTexture mipmapLevelCount](1).'
In Release mode, it doesn't crash, but tends to make the whole machine unresponsive and sometimes even tints the whole Cinema UI green. Wtf. Never had this before.
Thanks for help,