Share via


ConstantTable.GetSamplerIndex(EffectHandle) Method (Microsoft.DirectX.Direct3D)

Retrieves the sampler index.

Definition

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

Parameters

constant Microsoft.DirectX.Direct3D.EffectHandle
An EffectHandle object that represents the unique identifier for the sampler whose index is to be retrieved.

Return Value

System.Int32
The sampler index number from the constant table.