Share via


IMTLArgumentEncoder.SetSamplerState(IMTLSamplerState, UIntPtr) Method

Definition

Encodes sampler into the argument buffer.

[Foundation.Export("setSamplerState:atIndex:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetSamplerState(Metal.IMTLSamplerState? sampler, UIntPtr index);
[<Foundation.Export("setSamplerState:atIndex:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetSamplerState : Metal.IMTLSamplerState * unativeint -> unit
override this.SetSamplerState : Metal.IMTLSamplerState * unativeint -> unit

Parameters

sampler
IMTLSamplerState

A sampler within an argument buffer.

index
UIntPtr

unativeint

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

Attributes

Applies to