BaseEffect.GetPass Method

Language:

Retrieves the EffectHandle of a pass.

Definition

Visual Basic Public Function GetPass( _
    ByVal technique As EffectHandle, _
    ByVal name As String _
) As EffectHandle
C# public EffectHandle GetPass(
    EffectHandle technique,
    string name
);
C++ public:
EffectHandleGetPass(
    EffectHandletechnique,
    Stringname
);
JScript public function GetPass(
    technique : EffectHandle,
    name : String
) : EffectHandle;

Parameters

technique Microsoft.DirectX.Direct3D.EffectHandle
The EffectHandle of the parent technique.
name System.String
String that contains the name of 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