IMTLArgumentEncoder.SetArgumentBuffer Method

Definition

Overloads

SetArgumentBuffer(IMTLBuffer, nuint)

Sets the target buffer to which arguments will be encoded.

SetArgumentBuffer(IMTLBuffer, nuint, nuint)

Sets the target buffer to which arguments will be encoded.

SetArgumentBuffer(IMTLBuffer, nuint)

Sets the target buffer to which arguments will be encoded.

[Foundation.Export("setArgumentBuffer:offset:")]
[Foundation.Preserve(Conditional=true)]
public void SetArgumentBuffer (Metal.IMTLBuffer argumentBuffer, nuint offset);
abstract member SetArgumentBuffer : Metal.IMTLBuffer * nuint -> unit

Parameters

argumentBuffer
IMTLBuffer

The destination buffer.

offset
System.System.UIntPtr System.unativeint

The offset of the buffer, in bytes.

Attributes

Applies to

SetArgumentBuffer(IMTLBuffer, nuint, nuint)

Sets the target buffer to which arguments will be encoded.

[Foundation.Export("setArgumentBuffer:startOffset:arrayElement:")]
[Foundation.Preserve(Conditional=true)]
public void SetArgumentBuffer (Metal.IMTLBuffer argumentBuffer, nuint startOffset, nuint arrayElement);
abstract member SetArgumentBuffer : Metal.IMTLBuffer * nuint * nuint -> unit

Parameters

argumentBuffer
IMTLBuffer

The destination buffer.

startOffset
System.System.UIntPtr System.unativeint

The offset of the buffer, in bytes.

arrayElement
System.System.UIntPtr System.unativeint

The index, into the targeted buffer, of the argument.

Attributes

Applies to