BaseEffect.GetParameterBySemantic(EffectHandle,String) Method (Microsoft.DirectX.Direct3D)

Retrieves the handle of a top-level parameter or structure member parameter by looking up its semantic.

Definition

Visual Basic Public Function GetParameterBySemantic( _
    ByVal constant As EffectHandle, _
    ByVal name As String _
) As EffectHandle
C# public EffectHandle GetParameterBySemantic(
    EffectHandle constant,
    string name
);
C++ public:
EffectHandleGetParameterBySemantic(
    EffectHandleconstant,
    StringLeave Sitename
);
JScript public function GetParameterBySemantic(
    constant : EffectHandle,
    name : String
) : EffectHandle;

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle
The EffectHandle of the parameter, or null for top-level parameters.
name System.String
String that contains the semantic name.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
The EffectHandle of the first parameter that matches the specified semantic, or null if the semantic is not found.

Applies To

Effect, EffectCompiler