Edit

Share via


IMTLArgumentEncoder.SetSamplerState(IMTLSamplerState, nuint) Method

Definition

Encodes sampler into the argument buffer.

[Foundation.Export("setSamplerState:atIndex:")]
[Foundation.Preserve(Conditional=true)]
public void SetSamplerState (Metal.IMTLSamplerState sampler, nuint index);
abstract member SetSamplerState : Metal.IMTLSamplerState * nuint -> unit

Parameters

sampler
IMTLSamplerState

A sampler within an argument buffer.

index
System.System.UIntPtr System.unativeint

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

Attributes

Applies to