| EffectTechniqueBindingOnNextPass Method |
Called when next effect pass needs to be selected.
Namespace: DigitalRune.Graphics.EffectsAssembly: 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
)
Protected Overridable Function OnNextPass (
technique As EffectTechnique,
context As RenderContext,
ByRef index As Integer,
<OutAttribute> ByRef pass As EffectPass
) As Boolean
protected:
virtual bool OnNextPass(
EffectTechnique^ technique,
RenderContext^ context,
int% index,
[OutAttribute] EffectPass^% pass
)
abstract OnNextPass :
technique : EffectTechnique *
context : RenderContext *
index : int byref *
pass : EffectPass byref -> bool
override OnNextPass :
technique : EffectTechnique *
context : RenderContext *
index : int byref *
pass : EffectPass byref -> bool
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