Displaying wide-color (DisplayP3) in MTKView

Updated
Mar 27, 2021 7:37 PM
Created
Mar 27, 2021 7:35 PM
Tags
BookmarkCoreImage
Keywords
☝️

In order to support the wide color gamut, you need to set the colorPixelFormat of your MTKView to either BGRA10_XR or bgra10_XR_sRGB. I suspect the colorSpace property of macOS MTKViews won't be supported on iOS because color management in iOS is not active but targeted (read Best practices for color management).