> ## 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.

# GetSerializedSize

> 傳回序列化資料庫目前內容所需的記憶體數量。

傳回序列化資料庫目前內容所需的記憶體數量。

## 語法

```cpp theme={null}
SIZE_T GetSerializedSize(
)
```

### 參數

### 傳回值

類型：SIZE\_T

此方法會傳回 SIZE\_T 物件，其中包含所需的大小 (以位元組為單位)。

## 備註

請參閱 [CreatePipelineLibrary](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_createpipelinelibrary_public) 的備註和範例。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機和 XBOX One 系列

## 另請參閱

[ID3D12PipelineLibrary](/zh-TW/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/id3d12pipelinelibrary_public)


## Related topics

- [Serialize](/zh-TW/reference/graphics/d3d12/interfaces/id3d12pipelinelibrary/methods/id3d12pipelinelibrary_serialize_public.md)
- [D3D12_SERIALIZED_RAYTRACING_ACCELERATION_STRUCTURE_HEADER](/zh-TW/reference/graphics/d3d12/structs/d3d12_serialized_raytracing_acceleration_structure_header_public.md)
- [D3D12_SERIALIZED_DATA_DRIVER_MATCHING_IDENTIFIER](/zh-TW/reference/graphics/d3d12/structs/d3d12_serialized_data_driver_matching_identifier_public.md)
- [D3D12_SERIALIZED_DATA_TYPE (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/enums/d3d12_serialized_data_type_public.md)
- [CheckDriverMatchingIdentifier (XBOX Series 主機)](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_checkdrivermatchingidentifier_public.md)
