I create a subview of MTKView, and set it's pixel format and depth:
clearColor = MTLClearColor(red: 0.0, green: 0.0,
blue: 0.0, alpha: 1)
depthStencilPixelFormat = .depth32Float
colorPixelFormat = .bgra8Unorm
autoResizeDrawable = true
But the output color attachments are below:
Prio to iOS 17, everything is ok.