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.

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