Share via


IMTLArgumentEncoder.SetSamplerStates(IMTLSamplerState[], NSRange) Method

Definition

Encodes the provided samplers into the argument buffer.

[Foundation.Export("setSamplerStates:withRange:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetSamplerStates(Metal.IMTLSamplerState[] samplers, Foundation.NSRange range);
[<Foundation.Export("setSamplerStates:withRange:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetSamplerStates : Metal.IMTLSamplerState[] * Foundation.NSRange -> unit
override this.SetSamplerStates : Metal.IMTLSamplerState[] * Foundation.NSRange -> unit

Parameters

samplers
IMTLSamplerState[]

An array of samplers from which to select the samplers to encode.

range
NSRange

Indices into samplers. Either Metal index IDs or the index members of MTLArgumentDescriptors.

Attributes

Applies to