How do I check if the pixelformat is available in device or iOS?

Updated
Apr 7, 2021 4:35 AM
Created
Apr 7, 2021 4:34 AM
Tags
CoreImageQuestion
Keywords
Date

the problem is following error in iOS13 iPhoneX.

MTKView uses bgra10_xr in pixelformat.

[CIRenderDestination initWithMTLTexture:commandBuffer:] unsupported MTLPixelFormat.