Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Builds a real conditional: only the selected region executes, including its memory and source-call effects.

API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor

public System.Collections.Generic.IReadOnlyDictionary<string, InnoEditor.Rendering.Shaders.ShaderIrValue> InnoEditor.Rendering.Shaders.ShaderIrBuilder.Branch(InnoEditor.Rendering.Shaders.ShaderIrValue condition, System.Func<InnoEditor.Rendering.Shaders.ShaderIrBuilder, System.Collections.Generic.IReadOnlyDictionary<string, InnoEditor.Rendering.Shaders.ShaderIrValue>> whenTrue, System.Func<InnoEditor.Rendering.Shaders.ShaderIrBuilder, System.Collections.Generic.IReadOnlyDictionary<string, InnoEditor.Rendering.Shaders.ShaderIrValue>> whenFalse)

Parameter condition: Scalar Boolean visible in this region.

Parameter whenTrue: Transient callback building the true region and its named outputs.

Parameter whenFalse: Transient callback building the false region with exactly matching output names/types.

Values merged into the enclosing scope; empty output maps represent effect-only branches.

Exception T:System.ArgumentException: The condition or branch output contracts are incompatible.

Exception T:System.InvalidOperationException: A callback mutates the enclosing scope or declares a nested stage input.