Contents

MDLVertexFormat

Descriptions of the data size and layout for a vertex attribute, used by the Format property.

Declaration

enum MDLVertexFormat

Overview

The values for vertex formats are constructed such that you can use bit masks to infer useful information about a format:

  • The lowest order byte contains the number of vector components in a vertex format. For example, the raw value for the MDLVertexFormat.char3 format is the bitwise OR of the 3 (the number of components) with the MDLVertexFormat.charBits value.

  • Special packed formats such as MDLVertexFormat.int1010102Normalized have values less than 0x10000.

  • For unpacked formats, masking away the lower four bytes leaves information about the data type for scalars or vector components.

Topics

Constants

Initializers

See Also

Constants