BaseEffect.GetPass Method

Language:

Retrieves the EffectHandle of a pass.

Definition

Visual Basic Public Function GetPass( _
    ByVal technique As EffectHandle, _
    ByVal index As Integer _
) As EffectHandle
C# public EffectHandle GetPass(
    EffectHandle technique,
    int index
);
C++ public:
EffectHandleGetPass(
    EffectHandletechnique,
    int index
);
JScript public function GetPass(
    technique : EffectHandle,
    index : int
) : EffectHandle;

Parameters

technique Microsoft.DirectX.Direct3D.EffectHandle
The EffectHandle of the parent technique.
index System.Int32
Index for the pass.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
The EffectHandle of the specified pass inside the specified technique, or null if the index is invalid.

Applies To

Effect, EffectCompiler

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center