Microsoft DirectX 9.0 SDK Update (October 2004)

TextureShader.GetConstant Method

Language:

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

Retrieves an effect constant.

Definition

Visual Basic .NET Public Function GetConstant( _
    ByVal constant As EffectHandle, _
    ByVal name As String _
) As EffectHandle
C# public EffectHandle GetConstant(
    EffectHandle constant,
    string name
);
Managed C++ public: EffectHandle* GetConstant(
    EffectHandle *constant,
    String *name
);
JScript .NET public function GetConstant(
    constant : EffectHandle,
    name : String
) : EffectHandle;

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle. An EffectHandle object that represents the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use null.
name System.String. A string that contains the name of the constant to retrieve.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle . An EffectHandle that represents the effect constant.


© 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