Synchronously loads image data and creates a Metal texture from the named texture asset in an asset catalog, using a specified display gamut.
- 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 textures from.
A pointer to an
NSErrorobject if an error occurred, or
nilif the texture was fully loaded and initialized.
A fully loaded and initialized Metal texture, or
nil if an error occurred.