Asynchronously loads image data and creates a Metal texture from the named texture asset in an asset catalog.
- macOS 10.12+
The name of a texture in an asset catalog.
The version of the texture based on the Gamut trait in Xcode.
To determine the appropriate parameter value, pass the widest
NSDisplayvalue that returns
YESwhen queried against the
Represent Display Gamut:
The resource bundle containing the asset catalog to load the texture from.
A block called when the texture has been loaded and fully initialized.