IMTLArgumentEncoder.SetTexture(IMTLTexture, UIntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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