TextureShader.GetConstantDescription Method

Language:

Retrieves an array of effect constants in the effect's constant table.

Definition

Visual Basic Public Function GetConstantDescription( _
    ByVal constant As EffectHandle, _
    ByVal numberConstants As Integer _
) As ConstantDescription()
C# public ConstantDescription[] GetConstantDescription(
    EffectHandle constant,
    int numberConstants
);
C++ public:
array<ConstantDescription>^ GetConstantDescription(
    EffectHandleconstant,
    int numberConstants
);
JScript public function GetConstantDescription(
    constant : EffectHandle,
    numberConstants : int
) : ConstantDescription[];

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle object that represents the effect constant.
numberConstants System.Int32
Number of constants to retrieve.

Return Value

Microsoft.DirectX.Direct3D.ConstantDescription[]
Returns an array of ConstantDescription objects that represent the effect constant descriptions.

Remarks

Samplers can appear more than once in a constant table, therefore, GetConstantDescription can return an array of descriptions each with a different register index.


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