d3d9.dllSetSamplerState
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DDevice9::SetSamplerState Method


Sets the sampler state value.

Syntax

HRESULT SetSamplerState(      

    DWORD Sampler,     D3DSAMPLERSTATETYPE Type,     DWORD Value );

Parameters

Sampler
[in] The sampler stage index.
Type
[in] This parameter can be any member of the D3DSAMPLERSTATETYPE enumerated type.
Value
[in] State value to set. The meaning of this value is determined by the Type parameter.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

See Also

IDirect3DDevice9::GetSamplerState


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.