> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StorePipeline

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

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

## Syntax

```cpp theme={null}
HRESULT StorePipeline(
    LPCWSTR pName,
    ID3D12PipelineState  pPipeline
)
```

### Parameters

*pName \[in, optional]*\
Type: LPCWSTR

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

*pPipeline \[in]*\
Type: ID3D12PipelineState \*

Specifies the [ID3D12PipelineState](/reference/graphics/d3d12_xs/interfaces/ID3D12PipelineState/id3d12pipelinestate_xs) 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](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public).

## 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](/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/id3d12pipelinelibrary_public)


## Related topics

- [CreatePipelineLibrary](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public.md)
- [D3D12_CACHED_PIPELINE_STATE](/reference/graphics/d3d12/structs/d3d12_cached_pipeline_state_public.md)
- [LoadPipeline](/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary1/methods/id3d12pipelinelibrary1_loadpipeline_public.md)
- [Event Pipeline Tutorial](/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [Overview of event-based Achievements](/services/xbox-services/player-data/achievements/event-based/live-achievements-eb-overview.md)
