Instance Method

setBuffers(_:offsets:range:)

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

Declaration

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

Parameters

buffers

An array of buffers to encode.

offsets

An array of byte offsets for the array of buffers.

range

A range of indices for the array of buffers within the argument buffer. These values correspond to either the index IDs of a Metal shading language declaration or the index fields of MTLArgumentDescriptor objects.

See Also

Encoding Buffers

func setBuffer(MTLBuffer?, offset: Int, index: Int)

Encodes a reference to a buffer into the argument buffer.

Required.