![]() |
![]() |
![]() |
ConstantTable.GetConstantElement Method |
Language: |
Retrieves a constant from an array of constants.
Visual Basic .NET Public Function GetConstantElement( _
ByVal constant As EffectHandle, _
ByVal index As Integer _
) As EffectHandleC# public EffectHandle GetConstantElement(
EffectHandle constant,
int index
);Managed C++ public: EffectHandle* GetConstantElement(
EffectHandle *constant,
int index
);JScript .NET public function GetConstantElement(
constant : EffectHandle,
index : int
) : EffectHandle;
constant Microsoft.DirectX.Direct3D.EffectHandle. An EffectHandle class that uniquely identifies the array of constants. This value cannot be 0. index System.Int32. Zero-based index of the element in the array.
Microsoft.DirectX.Direct3D.EffectHandle . An EffectHandle that uniquely identifies the constant.
To get a constant that is not part of an array, use ConstantTable.GetConstant.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center