Asynchronously 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 scale factor of texture to request.
In iOS and tvOS, pass the
contentsScale value of the view where you plan to display texture content.
In macOS, pass the
backingScaleFactor value of the window where you plan to display texture content.
The resource bundle containing the asset catalog to load the texture from.
A dictionary describing any additional texture loading steps. See Texture Loading Options.
When using this method, the texture loader ignores the
A block called when the texture has been loaded and fully initialized.
Loading Textures from Asset Catalogs