newTextures(URLs:options:error:)
Synchronously loads image data and creates new Metal textures from the specified list of URLs.
Declaration
func newTextures(URLs: [URL], options: [MTKTextureLoader.Option : Any]? = nil, error: NSErrorPointer) -> [any MTLTexture]Parameters
- URLs:
An array of URLs referencing files to load.
- options:
A dictionary describing any additional texture loading steps. See
Texture Loading Options. - error:
If all textures were fully loaded and initialized, this pointer is
nilon output. If an error occurs while loading any of the specified URLs, this pointer refers to an Nserror object describing the failure. (Which element in theURLsarray the error corresponds to is undefined.)
Return Value
An array of Metal textures, each corresponding to a URL listed in the URLs parameter. If an error occurs while loading a texture, the corresponding array element is an NSNull object.