Enumeration

MDLIndexBitDepth

Options for the size of integer data in a submesh’s index buffer, used by the indexType property.

Declaration

typedef enum MDLIndexBitDepth : NSUInteger {
    ...
} MDLIndexBitDepth;

Overview

For optimum performance, an index buffer should generally use the smallest data type that fits the number of indices it contains.

Topics

Constants

MDLIndexBitDepthInvalid

The submesh has not been initialized or its data type is unknown.

MDLIndexBitDepthUInt8

Each index in the submesh’s index buffer is an 8-bit integer.

MDLIndexBitDepthUInt16

Each index in the submesh’s index buffer is a 16-bit integer.

MDLIndexBitDepthUInt32

Each index in the submesh’s index buffer is a 32-bit integer.