Instance Method


Returns the vertex attribute with the specified name in the vertex descriptor.


func attributeNamed(_ name: String) -> MDLVertexAttribute?



The attribute name for which to retrieve data. See Vertex Attributes for standard attribute names.

Return Value

The descriptor’s vertex attribute with the specified name, or nil if the attributes array does not contain a vertex attribute with that name.

See Also

Working with Vertex Attributes

var attributes: NSMutableArray

The list of vertex attributes described by the vertex descriptor.

func addOrReplaceAttribute(MDLVertexAttribute)

Adds the specified vertex attribute to the vertex descriptor, replacing any existing attribute with the same name.

func setPackedOffsets()

Sets the offset for each vertex attribute to the minimum value to pack vertex data together in a single buffer.