Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Discards a fragment when the Boolean condition is true; other stages reject this instruction.

API: engine
Project: Inno.Rendering.Shaders

public void Inno.Rendering.Shaders.ShaderIrBuilder.Discard(Inno.Rendering.Shaders.ShaderIrValue condition)

Parameter condition: Scalar Boolean from this block.

Exception T:System.ArgumentException: The condition is not a Boolean or belongs to another builder.