Create a sampler-state object that encapsulates sampling information for a texture.
HRESULT CreateSamplerState( [in] const D3D10_SAMPLER_DESC *pSamplerDesc, [out] ID3D10SamplerState **ppSamplerState );
- pSamplerDesc [in]
Type: const D3D10_SAMPLER_DESC*
Pointer to a sampler state description (see D3D10_SAMPLER_DESC).
- ppSamplerState [out]
Address of a pointer to the sampler state object created (see ID3D10SamplerState Interface).
This method returns one of the following Direct3D 10 Return Codes.
4096 unique sampler state objects can be created on a device at a time.
If an application attempts to create a sampler state with the same description as an already existing sampler state, then the same interface with an incremented reference count will be returned and the total number of unique sampler state objects will stay the same.