ConstantTable.GetConstant(EffectHandle,Int32) Method (Microsoft.DirectX.Direct3D)
Retrieves a constant by looking up its index or by name.
Definition
Visual Basic Public Function GetConstant( _
ByVal constant As EffectHandle, _
ByVal index As Integer _
) As EffectHandleC# public EffectHandle GetConstant(
EffectHandle constant,
int index
);C++ public:
EffectHandle^ GetConstant(
EffectHandle^ constant,
int index
);JScript public function GetConstant(
constant : EffectHandle,
index : int
) : EffectHandle;
Parameters
constant Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle that serves as a unique identifier to the parent data structure. If the constant is a top-level parameter (that is, if there is no parent data structure), use 0.index System.Int32
Zero-based index of the constant.
Return Value
Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle class that represents the constant.