Share via


EffectStateManager.SetSamplerState(Int32,SamplerStageStates,Int32) Method (Microsoft.DirectX.Direct3D)

Sets a sampler state.

Definition

Visual Basic MustOverride Public Sub SetSamplerState( _
    ByVal samplerStage As Integer, _
    ByVal state As SamplerStageStates, _
    ByVal value As Integer _
)
C# public abstract void SetSamplerState(
    int samplerStage,
    SamplerStageStates state,
    int value
);
C++ public:
virtual void SetSamplerState(
    int samplerStage,
    SamplerStageStates state,
    int value
) abstract;
JScript public abstract function SetSamplerState(
    samplerStage : int,
    state : SamplerStageStates,
    value : int
);

Parameters

samplerStage System.Int32
The zero-based sampler stage index.
state Microsoft.DirectX.Direct3D.SamplerStageStates
A SamplerStageStates enumeration that identifies sampler state, which can specify the filtering, addressing, or the border color.
value System.Int32
The value to set for the sampler state type specified in state.

Remarks

SetSamplerState is a user-implemented method that is called from an effect during rendering.