Share via


MPSGraph_MPSGraphControlFlowOps.If Method

Definition

[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
name
String

Returns

Attributes

Applies to