Expand Minimize

IDirect3DDevice9::SetSamplerState method

Sets the sampler state value.

Syntax


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

Parameters

Sampler [in]

Type: DWORD

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

Type [in]

Type: D3DSAMPLERSTATETYPE

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

Value [in]

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

Header

D3D9.h

Library

D3D9.lib

See also

IDirect3DDevice9
IDirect3DDevice9::GetSamplerState

 

 

Community Additions

ADD
Show:
© 2014 Microsoft