ID3D12GraphicsCommandList4::SetPipelineState1 method (d3d12.h)

Sets a state object on the command list.

Syntax

void SetPipelineState1(
  ID3D12StateObject *pStateObject
);

Parameters

pStateObject

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

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

Requirement Value
Minimum supported client Windows 10, version 1809 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See also

ID3D12GraphicsCommandList4