Microsoft DirectX 9.0 SDK Update (October 2004)

BaseEffect.GetParameterBySemantic Method

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Function GetParameterBySemantic( _
    ByVal constant As EffectHandle, _
    ByVal name As String _
) As EffectHandle
C# public EffectHandle GetParameterBySemantic(
    EffectHandle constant,
    string name
);
Managed C++ public: EffectHandle* GetParameterBySemantic(
    EffectHandle *constant,
    String *name
);
JScript .NET 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

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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