ID3D11Device::CreateSamplerState method
Create a sampler-state object that encapsulates sampling information for a texture.
Syntax
HRESULT CreateSamplerState( [in] const D3D11_SAMPLER_DESC *pSamplerDesc, [out] ID3D11SamplerState **ppSamplerState );
Parameters
- pSamplerDesc [in]
-
Type: const D3D11_SAMPLER_DESC*
Pointer to a sampler state description (see D3D11_SAMPLER_DESC).
- ppSamplerState [out]
-
Type: ID3D11SamplerState**
Address of a pointer to the sampler state object created (see ID3D11SamplerState).
Return value
Type: HRESULT
This method returns one of the following Direct3D 11 Return Codes.
Remarks
4096 unique sampler state objects can be created on a device at a time.
If an application attempts to create a sampler-state interface with the same state as an existing interface, the same interface will be returned and the total number of unique sampler state objects will stay the same.
Windows Phone 8: This API is supported.
Requirements
|
Header |
|
|---|---|
|
Library |
|
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012
