편집

다음을 통해 공유


IMTLArgumentEncoder.SetTexture(IMTLTexture, nuint) Method

Definition

Encodes the provided texture into the argument buffer.

[Foundation.Export("setTexture:atIndex:")]
[Foundation.Preserve(Conditional=true)]
public void SetTexture (Metal.IMTLTexture texture, nuint index);
abstract member SetTexture : Metal.IMTLTexture * nuint -> unit

Parameters

texture
IMTLTexture

A texture within an argument buffer.

index
System.System.UIntPtr System.unativeint

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

Attributes

Applies to