ID3D12PipelineLibrary::StorePipeline method (d3d12.h)

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

Syntax

HRESULT StorePipeline(
  [in, optional] LPCWSTR             pName,
  [in]           ID3D12PipelineState *pPipeline
);

Parameters

[in, optional] pName

Type: LPCWSTR

Specifies a unique name for the library. Overwriting is not supported.

[in] pPipeline

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

Requirement Value
Target Platform Windows
Header d3d12.h
Library D3d12.lib
DLL D3d12.dll

See also

ID3D12PipelineLibrary