How do I position an image correctly in MTKView?
问题 I am trying to implement an image editing view using MTKView and Core Image filters and have the basics working and can see the filter applied in realtime. However the image is not positioned correctly in the view - can someone point me in the right direction for what needs to be done to get the image to render correctly in the view. It needs to fit the view and retain its original aspect ratio. Here is the metal draw function - and the empty drawableSizeWillChange!? - go figure. its probably