Instance Property

attributeIndex

The index of the attribute, as declared in Metal shader source code.

Declaration

var attributeIndex: Int { get }

See Also

Reading an Attribute's Properties

var name: String

The name of the attribute.

var attributeType: MTLDataType

The data type for the attribute, as declared in Metal shader source code.

var isActive: Bool

A Boolean value that indicates whether the attribute is active.

var isPatchControlPointData: Bool

A Boolean value that indicates whether the attribute represents control point data.

var isPatchData: Bool

A Boolean value that indicates whether the attribute represents tessellation patch data.