An object that configures how input data for an attribute is fetched by a function.


class MTLBufferLayoutDescriptor : NSObject


Describing Fetch Behavior

var stride: Int

The distance, in bytes, between entries in the buffer for the attribute.

var stepFunction: MTLStepFunction

Determines which aspect of command execution triggers data fetches.

var stepRate: Int

The rate at which data is fetched by the step function.

enum MTLStepFunction

The frequency with which a function fetches attribute data.


Inherits From

See Also

Specifying Buffer Layouts and Fetch Behavior

var stageInputDescriptor: MTLStageInputOutputDescriptor?

The organization of input and output data for the compute function.

class MTLStageInputOutputDescriptor

An object that describes the input and output data of a function.

class MTLAttributeDescriptor

An object that describes an argument's format and where its data is stored in memory.