When I capture the contents of an MTKView into a UIImage, the resulting image looks qualitatively different, as shown below:
The code I use to generate the UIIm
let context = CIContext() let texture = metalView.currentDrawable!.texture let cImg = CIImage(mtlTexture: texture, options: nil)! let cgImg = context.createCGImage(cImg, from: cImg.extent)! let uiImg = UIImage(cgImage: cgImg)