Share via


IMTLFunction.CreateArgumentEncoder Method

Definition

Overloads

Name Description
CreateArgumentEncoder(UIntPtr)

Creates a new argument encoder for the specified buffer index.

CreateArgumentEncoder(UIntPtr, MTLArgument)

Creates a new argument encoder for the specified buffer index and reflection argument.

CreateArgumentEncoder(UIntPtr)

Creates a new argument encoder for the specified buffer index.

[Foundation.Export("newArgumentEncoderWithBufferIndex:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLArgumentEncoder CreateArgumentEncoder(UIntPtr bufferIndex);
[<Foundation.Export("newArgumentEncoderWithBufferIndex:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateArgumentEncoder : unativeint -> Metal.IMTLArgumentEncoder
override this.CreateArgumentEncoder : unativeint -> Metal.IMTLArgumentEncoder

Parameters

bufferIndex
UIntPtr

unativeint

Index into a graphics function or compute function of the argument buffer.

Returns

Attributes

Applies to

CreateArgumentEncoder(UIntPtr, MTLArgument)

Creates a new argument encoder for the specified buffer index and reflection argument.

[Foundation.Export("newArgumentEncoderWithBufferIndex:reflection:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Metal.IMTLArgumentEncoder CreateArgumentEncoder(UIntPtr bufferIndex, out Metal.MTLArgument? reflection);
[<Foundation.Export("newArgumentEncoderWithBufferIndex:reflection:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateArgumentEncoder : unativeint * MTLArgument -> Metal.IMTLArgumentEncoder
override this.CreateArgumentEncoder : unativeint * MTLArgument -> Metal.IMTLArgumentEncoder

Parameters

bufferIndex
UIntPtr

unativeint

Index into a graphics function or compute function of the argument buffer.

reflection
MTLArgument

The resulting reflection data.

Returns

Attributes

Applies to