Share via


BaseEffect.GetParameter(EffectHandle,Int32) Method (Microsoft.DirectX.Direct3D)

Retrieves a top-level parameter or a structure member parameter.

Definition

Visual Basic Public Function GetParameter( _
    ByVal constant As EffectHandle, _
    ByVal index As Integer _
) As EffectHandle
C# public EffectHandle GetParameter(
    EffectHandle constant,
    int index
);
C++ public:
EffectHandleGetParameter(
    EffectHandleconstant,
    int index
);
JScript public function GetParameter(
    constant : EffectHandle,
    index : int
) : EffectHandle;

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle object that indicates the parameter, or null for top-level parameters.
index System.Int32
Parameter index.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle of the specified parameter, or null if the parameter is not found.

Applies To

Effect, EffectCompiler