Instance Method

setArgumentBuffer(_:startOffset:arrayElement:)

Specifies the argument buffer that resources are encoded into.

Required.

Declaration

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

Parameters

argumentBuffer

The destination buffer that represents an argument buffer.

startOffset

The starting byte offset of the buffer.

arrayElement

The desired element of the argument buffer array targeted by encoding.

See Also

Creating an Argument Buffer

func setArgumentBuffer(MTLBuffer?, offset: 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.