CAMetalLayer Display Drawable's pixel format is not correct in iOS 17.

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.

  • Hello. Sorry to hear you are having trouble with the Metal Debugger. Is there a chance you could share a project where this reproduces? You could share it by attaching it to a feedback assistant and posting the number here.

Add a Comment

Accepted Reply

Check this: FB13208058 (CAMetalLayer Display Drawable's pixel format is not correct in iOS 17).

Replies

Check this: FB13208058 (CAMetalLayer Display Drawable's pixel format is not correct in iOS 17).