Instance Method

indexBuffer(asIndexType:)

No overview available.

Declaration

func indexBuffer(asIndexType indexType: MDLIndexBitDepth) -> MDLMeshBuffer

See Also

Working with a Submesh’s Index Buffer

var indexBuffer: MDLMeshBuffer

An object that provides index data for the submesh.

var indexCount: Int

The number of indices in the submesh’s index buffer.

var indexType: MDLIndexBitDepth

The data type for each element in the submesh’s index buffer.

var geometryType: MDLGeometryType

The type of geometric primitives described by the submesh’s index buffer.

var topology: MDLSubmeshTopology?

A description of how the non-uniform layout of the submesh’s index buffer defines the shape of the mesh.