Skip to main content
Writes the contents of the library to the provided memory, to be provided back to the runtime at a later time.

Syntax

Parameters

pData [out]
Type: void *
Specifies a pointer to the data. This memory must be readable and writable up to the input size. This data can be saved and provided to CreatePipelineLibrary at a later time, including future instances of this or other processes. The data becomes invalidated if the runtime or driver is updated, and is not portable to other hardware or devices. DataSizeInBytes
Type: SIZE_T
The size provided must be at least the size returned from GetSerializedSize.

Return value

Type: HRESULT This method returns an HRESULT success or error code, including E_INVALIDARG if the buffer provided isn’t big enough.

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