Class

MTLAttribute

An object that describes an attribute defined in the stage-in argument for a shader.

Declaration

@interface MTLAttribute : NSObject

Topics

Reading an Attribute's Properties

name

The name of the attribute.

attributeIndex

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

attributeType

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

active

A Boolean value that indicates whether the attribute is active.

patchControlPointData

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

patchData

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

Relationships

Inherits From

See Also

Retrieving Function Attributes

vertexAttributes

An array that describes the vertex input attributes to a vertex function.

Required.

stageInputAttributes

An array that describes the input attributes to the function.

Required.

MTLVertexAttribute

An object that represents an attribute of a vertex function.