Skip to main content
Adds the input PSO to an internal database with the corresponding name.

Syntax

Parameters

pName [in, optional]
Type: LPCWSTR
Specifies a unique name for the library. Overwriting is not supported. pPipeline [in]
Type: ID3D12PipelineState *
Specifies the ID3D12PipelineState to add.

Return value

Type: HRESULT This method returns an HRESULT success or error code, including E_INVALIDARG if the name already exists, E_OUTOFMEMORY if unable to allocate storage in the library.

Remarks

Refer to the remarks and examples for CreatePipelineLibrary.

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

ID3D12PipelineLibrary
Last modified on August 20, 2026