Gets the description for sampler state that you used to create the sampler-state object.
public:
void GetDescX(
D3D11X_SAMPLER_DESC *pDesc
)
pDesc
Type: D3D11X_SAMPLER_DESCĀ *
[out] Description of the sampler state, as a pointer to a D3D11X_SAMPLER_DESC structure.
This method can be used simply to retrieve the D3D11X_SAMPLER_DESC structure from the created class. Aternatively, the easiest way to determine how to fill in all of the many confusing fields of D3D11X_SAMPLER_DESC is to use CreateSamplerState to create the closest Direct3D equivalent, call GetDescX to get back the corresponding D3D11X_SAMPLER_DESC structure, override the appropriate fields, and then call ID3D11DeviceX::CreateSamplerStateX.
Note that GetDesc does not do the reverse. There is not always a mapping from D3D11X_SAMPLER_DESC back to D3D11_SAMPLER_DESC. If a sampler is created with D3D11X_SAMPLER_DESC, then GetDesc will always return a zeroed D3D11_SAMPLER_DESC.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.