MPSGraph_MPSGraphControlFlowOps.If 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.
[Foundation.Export("ifWithPredicateTensor:thenBlock:elseBlock:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor[] If(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor predicateTensor, MetalPerformanceShadersGraph.MPSGraphIfThenElseBlock thenBlock, MetalPerformanceShadersGraph.MPSGraphIfThenElseBlock? elseBlock, string? name);
[<Foundation.Export("ifWithPredicateTensor:thenBlock:elseBlock:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member If : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphIfThenElseBlock * MetalPerformanceShadersGraph.MPSGraphIfThenElseBlock * string -> MetalPerformanceShadersGraph.MPSGraphTensor[]
Parameters
- This
- MPSGraph
- predicateTensor
- MPSGraphTensor
- thenBlock
- MPSGraphIfThenElseBlock
- elseBlock
- MPSGraphIfThenElseBlock
- name
- String
Returns
- Attributes