Skip to content

Latest commit

 

History

History
84 lines (65 loc) · 3.1 KB

nf-d3d11-id3d11device-createsamplerstate.md

File metadata and controls

84 lines (65 loc) · 3.1 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d11.ID3D11Device.CreateSamplerState
ID3D11Device::CreateSamplerState (d3d11.h)
Create a sampler-state object that encapsulates sampling information for a texture. (ID3D11Device.CreateSamplerState)
845db980-5abf-c948-258d-62903feec271
CreateSamplerState
CreateSamplerState method [Direct3D 11]
CreateSamplerState method [Direct3D 11]
ID3D11Device interface
ID3D11Device interface [Direct3D 11]
CreateSamplerState method
ID3D11Device.CreateSamplerState
ID3D11Device::CreateSamplerState
d3d11/ID3D11Device::CreateSamplerState
direct3d11.id3d11device_createsamplerstate
direct3d11\id3d11device_createsamplerstate.htm
direct3d11
66cf7189-2882-43a4-8732-657402c983db
12/05/2018
845db980-5abf-c948-258d-62903feec271, CreateSamplerState, CreateSamplerState method [Direct3D 11], CreateSamplerState method [Direct3D 11],ID3D11Device interface, ID3D11Device interface [Direct3D 11],CreateSamplerState method, ID3D11Device.CreateSamplerState, ID3D11Device::CreateSamplerState, d3d11/ID3D11Device::CreateSamplerState, direct3d11.id3d11device_createsamplerstate
d3d11.h
Windows
D3D11.lib
Windows
19H1
ID3D11Device::CreateSamplerState
d3d11/ID3D11Device::CreateSamplerState
c++
APIRef
kbSyntax
COM
D3D11.lib
D3D11.dll
ID3D11Device.CreateSamplerState

ID3D11Device::CreateSamplerState

-description

Create a sampler-state object that encapsulates sampling information for a texture.

-parameters

-param pSamplerDesc [in]

Type: const D3D11_SAMPLER_DESC*

Pointer to a sampler state description (see D3D11_SAMPLER_DESC).

-param ppSamplerState [out, optional]

Type: ID3D11SamplerState**

Address of a pointer to the sampler state object created (see ID3D11SamplerState).

-returns

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.

-see-also

ID3D11Device