IDirect3DDevice9::SetSamplerState method (d3d9helper.h)

Sets the sampler state value.

Syntax

HRESULT SetSamplerState(
  [in] DWORD               Sampler,
  [in] D3DSAMPLERSTATETYPE Type,
  [in] DWORD               Value
);

Parameters

[in] Sampler

Type: DWORD

The sampler stage index. For more info about sampler stage, see Sampling Stage Registers in vs_3_0 (DirectX HLSL).

[in] Type

Type: D3DSAMPLERSTATETYPE

This parameter can be any member of the D3DSAMPLERSTATETYPE enumerated type.

[in] Value

Type: DWORD

State value to set. The meaning of this value is determined by the Type parameter.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Requirements

Requirement Value
Target Platform Windows
Header d3d9helper.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DDevice9

IDirect3DDevice9::GetSamplerState