init(contentsOf:withName:)
Asynchronously creates a texture resource from a file URL.
Declaration
@MainActor @preconcurrency convenience init(contentsOf url: URL, withName resourceName: String? = nil) async throwsParameters
- url:
The path or address of the file to load into the texture resource.
- resourceName:
A unique name the method assigns to the resource it loads, for use in network synchronization.