MTLVertexDescriptor
An instance that describes how to organize and map data to a vertex function.
Declaration
class MTLVertexDescriptorOverview
An MTLVertexDescriptor instance 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 MTLVertexDescriptor instance. When you configure an MTLRenderPipelineDescriptor instance to create this pipeline state, you use an MTLVertexDescriptor instance to establish the vertex layout for the function associated with the pipeline. Create and configure an MTLVertexDescriptor instance, then use this instance to set the vertexDescriptor property of the MTLRenderPipelineDescriptor instance.