?/TD>
Microsoft DirectX 9.0

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


© 2002 Microsoft Corporation. All rights reserved.