Share via


MTLFunctionConstantValues.SetConstantValue Method

Definition

Overloads

SetConstantValue(IntPtr, MTLDataType, String)

[Foundation.Export("setConstantValue:type:withName:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetConstantValue(IntPtr value, Metal.MTLDataType type, string name);
[<Foundation.Export("setConstantValue:type:withName:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetConstantValue : nativeint * Metal.MTLDataType * string -> unit
override this.SetConstantValue : nativeint * Metal.MTLDataType * string -> unit

Parameters

value
IntPtr

nativeint

name
String
Attributes

Applies to

SetConstantValue(IntPtr, MTLDataType, UIntPtr)

[Foundation.Export("setConstantValue:type:atIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetConstantValue(IntPtr value, Metal.MTLDataType type, UIntPtr index);
[<Foundation.Export("setConstantValue:type:atIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetConstantValue : nativeint * Metal.MTLDataType * unativeint -> unit
override this.SetConstantValue : nativeint * Metal.MTLDataType * unativeint -> unit

Parameters

value
IntPtr

nativeint

index
UIntPtr

unativeint

Attributes

Applies to