MTLArgumentEncoder_Extensions.SetBuffers Method

Definition

Encodes buffers to the argument buffer.

public static void SetBuffers (this Metal.IMTLArgumentEncoder This, Metal.IMTLBuffer[] buffers, nint[] offsets, Foundation.NSRange range);
static member SetBuffers : Metal.IMTLArgumentEncoder * Metal.IMTLBuffer[] * nint[] * Foundation.NSRange -> unit

Parameters

This
IMTLArgumentEncoder

The instance on which this method operates.

buffers
IMTLBuffer[]

An array of buffers in an argument buffer.

offsets

System.System.IntPtr[]

System.nativeint[]

The byte offsets of buffers in the containing buffer.

range
NSRange

Indices into the target buffer of the buffers in buffers. Either Metal index IDs or the index members of MTLArgumentDescriptors.

Applies to