Share via


IMTLArgumentEncoder.SetTexture(IMTLTexture, UIntPtr) Method

Definition

Encodes the provided texture into the argument buffer.

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

Parameters

texture
IMTLTexture

A texture within an argument buffer.

index
UIntPtr

unativeint

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

Attributes

Applies to