Synchronously loads image data and creates a new Metal texture from a given URL.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The URL of the file to load.
A dictionary describing any additional texture loading steps. See Texture Loading Options.
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.