Creates and returns 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.)
An image object initialized with the texture data.
To also render 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.