MetalKit - Drawable.texture assertion error
If you want to write to a drawable's texture from a compute function, you'll need to tell the MTKView
that it should configure its layer not to be framebuffer-only:
metalView.framebufferOnly = false
With this value set to false, your drawable will give you a texture with the shaderWrite
usage flag set, which is required when writing a texture from a shader function.