ID3D11SamplerState::GetDesc Method

Gets the description for sampler state that you used to create the sampler-state object.

Syntax

public:
void GetDesc(
         D3D11_SAMPLER_DESC *pDesc
)  

Parameters

pDesc
Type: D3D11_SAMPLER_DESCĀ *

[out] A pointer to a D3D11_SAMPLER_DESC structure that receives a description of the sampler state.

Return value

None.

Remarks

You use the description for sampler state in a call to the ID3D11Device::CreateSamplerState method to create the sampler-state object.

If a sampler is created with D3D11X_SAMPLER_DESC, then GetDesc will always return a zeroed D3D11_SAMPLER_DESC.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11SamplerState

ID3D11SamplerState Members