In chapter 14 I get an error here:
computeEncoder.setTexture(drawable.texture, index: 0)
The error is:
SIGABRT and -[MTLDebugComputeCommandEncoder setTexture:atIndex:]:362: failed assertion `frameBufferOnly texture not supported for compute.’
My device is not that old - an iPad Pro, 2nd gen.
I’m probably going to try creating a texture, doing the work there, and then copying that to drawable.texture
.