Instance Method

setArgumentBuffer(_:offset:)

Specifies the argument buffer that resources are encoded into.

Required.

Declaration

func setArgumentBuffer(_ argumentBuffer: MTLBuffer?, offset: Int)

Parameters

argumentBuffer

The destination buffer that represents an argument buffer.

offset

The byte offset of the buffer.

See Also

Creating an Argument Buffer

func setArgumentBuffer(MTLBuffer?, startOffset: Int, arrayElement: Int)

Specifies the argument buffer that resources are encoded into.

Required.

var encodedLength: Int

The number of bytes required to store the encoded resources of an argument buffer.

Required.