Initializes a named submesh with an index buffer and the specified properties.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Model I/O
A descriptive name for the submesh. This property is not used in rendering, but can be useful in debugging.
An object that provides index data for the submesh.
The number of indices in the index buffer.
The data type of each index in the index buffer.
The type of geometric primitives described by the index buffer.
A description of the intended surface appearance for rendering the submesh.
A new submesh object.
Typically, a submesh is imported from an asset file as a member of a
MDLMesh object, but you can also use this method to create a submesh programmatically.