編輯

共用方式為


IMTLArgumentEncoder.SetBuffer(IMTLBuffer, nuint, nuint) Method

Definition

Encodes buffer to the argument buffer.

[Foundation.Export("setBuffer:offset:atIndex:")]
[Foundation.Preserve(Conditional=true)]
public void SetBuffer (Metal.IMTLBuffer buffer, nuint offset, nuint index);
abstract member SetBuffer : Metal.IMTLBuffer * nuint * nuint -> unit

Parameters

buffer
IMTLBuffer

A buffer in an argument buffer.

offset
System.System.UIntPtr System.unativeint

The byte offset of buffer.

index
System.System.UIntPtr System.unativeint

The index of the nested buffer. Either a Metal index ID or the index member of a MTLArgumentDescriptor.

Attributes

Applies to