Click or drag to resize
DigitalRuneEffectTechniqueBindingOnNextPass Method
Called when next effect pass needs to be selected.

Namespace: DigitalRune.Graphics.Effects
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
protected virtual bool OnNextPass(
	EffectTechnique technique,
	RenderContext context,
	ref int index,
	out EffectPass pass
)

Parameters

technique
Type: EffectTechnique
The current effect technique.
context
Type: DigitalRune.GraphicsRenderContext
The render context.
index
Type: SystemInt32
The index of the next effect pass to be applied.
pass
Type: EffectPass
The effect pass.

Return Value

Type: Boolean
if the next effect pass has been selected and should be applied; otherwise, if the are no more passes.
Remarks

The method performs the following tasks:

  • Update the property PassIndex in the render context.
  • Select the next effect pass to be applied and store it in pass.
  • Increment index.

Notes to Inheritors:
This method can be overridden in derived classes. The base implementation simply iterates through all effect passes of the current technique.

See Also