Type Property


The processor's output pixel format.


class var outputFormat: CIFormat { get }


Override this class property if you want your processor's output to be in a specific CIFormat: BGRA8, RGBAh, RGBAf, or R8. If the outputFormat is 0, then the output will be a supported format that best matches the rendering context's workingFormat.

If a processor returns data in a colorspace other than the context working space, then call matchedToWorkingSpace(from:) on the processor output.

If a processor returns data as alpha-unpremultiplied RGBA data, then call premultiplyingAlpha() on the processor output.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software