Synchronously loads image data and creates a Metal texture from the named texture asset in an asset catalog.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The name of a texture in an asset catalog.
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.