An object that describes how vertex data is organized and mapped to a vertex function.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
MTLVertex object is used to configure how vertex data stored in memory is mapped to attributes in a vertex shader.
A pipeline state is the state of the graphics rendering pipeline, including shaders, blending, multisampling, and visibility testing. For every pipeline state, there can be only one
MTLVertex object. When you configure a
MTLRender object to create this pipeline state, you use a
MTLVertex object to establish the vertex layout for the function associated with the pipeline. Create and configure a
MTLVertex object, then use this object to set the
vertex property of the