MetalCameraSample
MetalCameraSample copied to clipboard
Issue with clipped textures
The output texture is clipped around the edges as compared to the image displayed in the Camera app). To display a texture showing the entire image captured by the camera:
drawableSize.width *= ((float)_textureY.width / (float)_textureY.height); //self.view.contentScaleFactor; drawableSize.height *= ((float)_textureY.width / (float)_textureY.height); //self.view.contentScaleFactor;