A source of texel data to be used in rendering material surface appearances.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Model I/O
You use the
MDLTexture class or one of its subclasses to identify, load, or create texture data, and then associate textures with materials using the
MDLMaterial classes. When you load 3D objects from an asset file (in a format that supports texturing) with the
MDLAsset class, Model I/O automatically creates texture objects and material objects and associates them with the
MDLSubmesh objects in the asset.