Share via


IMTLArgumentEncoder.GetConstantData(UIntPtr) Method

Definition

Returns a pointer to the constant at the specified index into the buffer.

[Foundation.Export("constantDataAtIndex:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr GetConstantData(UIntPtr index);
[<Foundation.Export("constantDataAtIndex:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetConstantData : unativeint -> nativeint
override this.GetConstantData : unativeint -> nativeint

Parameters

index
UIntPtr

unativeint

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

Returns

IntPtr

nativeint

Attributes

Applies to