Contents

loadTextures(using:)

Loads textures using resolver for string paths and NSURLs.

Declaration

func loadTextures(using resolver: any MDLAssetResolver)

Parameters

  • resolver:

    If non-nil, the resolver converts stringValues or NSURLs to MDLTextureSampler values.

Discussion

Iterates all material properties. If there are string values or NSURL values, and you can resolve the values as textures, then MDLTextureSampler values replaces the string and NSURL values.

See Also

Working with textures using resolvers