Initializes an image object with data supplied by a Metal texture.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Image
The Metal texture from which to use image data.
A dictionary specifying image options. (See Image Dictionary Keys.)
The initialized image object, or
nil if the image could not be initialized.
To render the image using Metal, use this image with a Metal-based
CIContext object created with the
context method, and call the
render: method to create an output image in another Metal texture object.