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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software