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.

Beta Software

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