Adds the specified vertex attribute to the vertex descriptor, replacing any existing attribute with the same name.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The vertex attribute to add to the vertex descriptor.
If the vertex descriptor contains an attribute whose
name property is the same as that of the
attribute parameter, the new attribute replaces the existing attribute in the
attributes array. Otherwise, this method adds the new attribute to the end of the
Working with Vertex Attributes
Sets the offset for each vertex attribute to the minimum value to pack vertex data together in a single buffer.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software