Contents

setBuffers(_:offsets:range:)

Encodes references to an array of buffers into the argument buffer.

Declaration

func setBuffers(_ buffers: [(any MTLBuffer)?], offsets: [Int], range: Range<Int>)

Parameters

  • buffers:

    An array of buffers the method encodes.

  • offsets:

    An array of byte offsets for each element in buffers.

  • range:

    A range of indices within the argument buffer for each element in buffers. The values correspond to either the index IDs of declarations in Metal Shading Language (MSL) or the Index property of Mtlargumentdescriptor instances.

See Also

Encoding buffers