Creates an OpenGL-based Core Image context using a GPU that is not currently driving a display, with the specified options.
- macOS 10.10–10.14Deprecated
- Core Image
The index of the offline GPU with which to create the context; a number between zero and the value returned by the
A color space object encapsulating color space information that is used to specify how color values are interpreted.
A dictionary that contains options for creating a
CIContextobject. You can pass any of the keys defined in Context Options along with the appropriate value.
A CGL context with which to share OpenGL resources, obtained by calling the CGL function CGLCreateContext(_:_:_:). Pass
NULLto use a context that does not share OpenGL resources.
A Core Image context.
GPU devices that are not currently being used to drive a display can be used for Core Image rendering. Use the
offline method to determine whether any such GPUs are available.
To create a Metal-based Core Image context using an offline GPU, use the
MTLCopy function to list Metal devices, then choose a device without a display to pass to the