Synced
ShaderIrBuilder.Branch
Section titled “ShaderIrBuilder.Branch”
- Builds a real conditional: only the selected region executes, including its memory and source-call effects.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor
Declaration
Section titled “Declaration”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”Values merged into the enclosing scope; empty output maps represent effect-only branches.
Exceptions
Section titled “Exceptions”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.