Skip to main content
Resets the state of a direct command list back to the state it was in when the command list was created.

Syntax

Parameters

pPipelineState [in, optional]
Type: ID3D12PipelineState *
A pointer to the ID3D12PipelineState object that contains the initial pipeline state for the command list.

Return value

Type: void None.

Remarks

It is invalid to call ClearState on a bundle. If an app calls ClearState on a bundle, the call to Close will return E_FAIL. When ClearState is called, all currently bound resources are unbound. The primitive topology is set to D3D_PRIMITIVE_TOPOLOGY_UNDEFINED. Viewports, scissor rectangles, stencil reference value, and the blend factor are set to empty values (all zeros). Predication is disabled. The app-provided pipeline state object becomes bound as the currently set pipeline state object.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12GraphicsCommandList
Last modified on August 20, 2026