Skip to main content
Sets a state object on the command list.

Syntax

Parameters

pStateObject
Type: ID3D12StateObject *
The state object to set on the command list. In the current release, this can only be of type D3D12_STATE_OBJECT_TYPE_RAYTRACING_PIPELINE.

Return value

Type: void None.

Remarks

This method can be called from graphics or compute command lists and bundles. This method is an alternative to ID3D12GraphicsCommandList::SetPipelineState, which is only defined for graphics and compute shaders. There is only one pipeline state active on a command list at a time, so either call sets the current pipeline state. The distinction between the calls is that each sets particular types of pipeline state only. In the current release, SetPipelineState1 is only used for setting raytracing pipeline state.

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles

See Also

ID3D12GraphicsCommandList4
Last modified on August 20, 2026