iosmetalopenexr

iOS Metal. How do I use the 'half' format for all color work?


The default color format for an MTKView is bgra8Unorm. I prefer to use the half format (See: OpenEXR). I am unclear which of the various formats Metal provides corresponds to half?


Solution

  • You should use rgb16Float:

    Ordinary format with four 16-bit floating-point components in RGBA order.