Instance Property


An index buffer identifying faces to be treated as holes in the mesh during surface subdivision.


var holes: MDLMeshBuffer? { get set }


This buffer contains integer values where each integer is the index of a face to be treated as a hole. For example, if there are two holes in a mesh, then this buffer has two entries.

Because the number of entries in this buffer is likely to be different than the number of entries in any other vertex buffer, it shouldn't be interleaved with other data in the mesh.

See Also

Identifying Holes

var holeCount: Int

The number of entries in the holes buffer.