TextureShader.GetConstantElement Method

Language:

Retrieves an effect constant element.

Definition

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

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle object that represents the array of constants.
index System.Int32
Zero-based index of the element in the constant table.

Return Value

Microsoft.DirectX.Direct3D.EffectHandle
Returns an EffectHandle that represents the effect constant element.


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