Instance Method


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


- (MDLVertexAttribute *)attributeNamed:(NSString *)name;



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


The list of vertex attributes described by the vertex descriptor.

- addOrReplaceAttribute:

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

- setPackedOffsets

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