Synced
ShaderIrBuilder.Select
Section titled “ShaderIrBuilder.Select”
- Selects between equal typed values without conditionally executing their producers.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor
Declaration
Section titled “Declaration”public InnoEditor.Rendering.Shaders.ShaderIrValue InnoEditor.Rendering.Shaders.ShaderIrBuilder.Select(InnoEditor.Rendering.Shaders.ShaderIrValue condition, InnoEditor.Rendering.Shaders.ShaderIrValue whenTrue, InnoEditor.Rendering.Shaders.ShaderIrValue whenFalse)Parameters
Section titled “Parameters”Parameter condition: Scalar Boolean condition from this builder.
Parameter whenTrue: Value selected when true.
Parameter whenFalse: Value selected when false.
Returns
Section titled “Returns”A value with the selected operands’ complete type.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The condition is not bool or selected value types differ.