IMTLArgumentEncoder.SetBuffer(IMTLBuffer, UIntPtr, 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 buffer to the argument buffer.
[Foundation.Export("setBuffer:offset:atIndex:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetBuffer(Metal.IMTLBuffer? buffer, UIntPtr offset, UIntPtr index);
[<Foundation.Export("setBuffer:offset:atIndex:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetBuffer : Metal.IMTLBuffer * unativeint * unativeint -> unit
override this.SetBuffer : Metal.IMTLBuffer * unativeint * unativeint -> unit
Parameters
- buffer
- IMTLBuffer
A buffer in an argument buffer.
- offset
-
UIntPtr
unativeint
The byte offset of buffer.
- index
-
UIntPtr
unativeint
The index of the nested buffer. Either a Metal index ID or the index member of a MTLArgumentDescriptor.
- Attributes