BaseEffect.GetParameterBySemantic Method

Language:

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,
    Stringname
);
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

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