Create a sampler-state object that encapsulates sampling information for a texture.
public:
HRESULT CreateSamplerState(
const D3D11_SAMPLER_DESC *pSamplerDesc,
ID3D11SamplerState **ppSamplerState
)
pSamplerDesc
Type: D3D11_SAMPLER_DESC *
[in] Pointer to a sampler state description (see D3D11_SAMPLER_DESC).
ppSamplerState
Type: ID3D11SamplerState **
[out, optional] Address of a pointer to the sampler state object created (see ID3D11SamplerState).
Type: HRESULT
This method returns one of the following Direct3D 11 return codes.
4096 unique sampler state objects can be created on a device at a time.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).