Synced
ShaderIrBuilder.Discard
Section titled “ShaderIrBuilder.Discard”
- Discards a fragment when the Boolean condition is true; other stages reject this instruction.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public void Inno.Rendering.Shaders.ShaderIrBuilder.Discard(Inno.Rendering.Shaders.ShaderIrValue condition)Parameters
Section titled “Parameters”Parameter condition: Scalar Boolean from this block.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The condition is not a Boolean or belongs to another builder.