Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
End
Map
Expand Minimize

ID3D11DeviceContext::ClearState method

Restore all default settings.

Syntax


void ClearState();

Parameters

This method has no parameters.

Return value

Returns nothing.

Remarks

This method resets any device context to the default settings. This sets all input/output resource slots, shaders, input layouts, predications, scissor rectangles, depth-stencil state, rasterizer state, blend state, sampler state, and viewports to NULL. The primitive topology is set to UNDEFINED.

For a scenario where you would like to clear a list of commands recorded so far, call ID3D11DeviceContext::FinishCommandList and throw away the resulting ID3D11CommandList.

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

 

 

Community Additions

ADD
Show:
© 2015 Microsoft