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

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

public void InnoEditor.Rendering.Shaders.ShaderIrBuilder.Discard(InnoEditor.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.