Class

MTLVertexBufferLayoutDescriptor

An object that configures how vertex data and attributes are fetched by a vertex function.

Declaration

class MTLVertexBufferLayoutDescriptor : NSObject

Topics

Organizing the Vertex Buffer Layout

var stepFunction: MTLVertexStepFunction

The circumstances under which the vertex and its attributes are presented to the vertex function.

var stepRate: Int

The interval at which the vertex and its attributes are presented to the vertex function.

var stride: Int

The distance, in bytes, between the attribute data of two vertices in the buffer.

Constants

enum MTLVertexStepFunction

The frequency with which the vertex function or post-tessellation vertex function fetches attribute data.

Relationships

Inherits From

See Also

Specifying Buffer Layouts and Fetch Behavior

var vertexDescriptor: MTLVertexDescriptor?

The organization of vertex data in an attribute’s argument table.

class MTLVertexDescriptor

An object that describes how vertex data is organized and mapped to a vertex function.

class MTLVertexAttributeDescriptor

An object that determines how attribute data is stored in memory and how it is mapped to the arguments of a vertex function.