MTLFunctionConstantValues.SetConstantValue 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.
Overloads
| Name | Description |
|---|---|
| SetConstantValue(IntPtr, MTLDataType, String) | |
| SetConstantValue(IntPtr, MTLDataType, UIntPtr) |
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
- type
- MTLDataType
- 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
- type
- MTLDataType
- index
-
UIntPtr
unativeint
- Attributes