Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Writes the contents of the library to the provided memory, to be provided back to the runtime at a later time.
Syntax
HRESULT Serialize(
[out] void *pData,
SIZE_T DataSizeInBytes
);
Parameters
[out] pData
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
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | d3d12.h |
| Library | D3d12.lib |
| DLL | D3d12.dll |