Contents

attributeNamed(_:)

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

Declaration

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

Parameters

  • 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