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

# D3D12_MEMORY_POOL

> 指定堆的内存池。

指定堆的内存池。

## 语法

```cpp theme={null}
typedef enum D3D12_MEMORY_POOL
{
    D3D12_MEMORY_POOL_UNKNOWN = 0,
    D3D12_MEMORY_POOL_L0 = 1,
    D3D12_MEMORY_POOL_L1 = 2
} D3D12_MEMORY_POOL
```

## 常量

| 常量                           | 说明                                                                                     |
| ---------------------------- | -------------------------------------------------------------------------------------- |
| D3D12\_MEMORY\_POOL\_UNKNOWN | 内存池未知。                                                                                 |
| D3D12\_MEMORY\_POOL\_L0      | 内存池为 L0。L0 是物理系统内存池。当适配器为离散/NUMA 时，此池为 CPU 提供更高带宽，为 GPU 提供更低带宽。当适配器为 UMA 时，此池是唯一有效的池。  |
| D3D12\_MEMORY\_POOL\_L1      | 内存池为 L1。L1 通常称为物理显存池。L1 仅在适配器为离散/NUMA 时可用，为 GPU 提供更高带宽，甚至不能由 CPU 访问。当适配器为 UMA 时，此池不可用。 |

## 注解

此枚举由 [D3D12\_HEAP\_PROPERTIES](/reference/graphics/d3d12/structs/d3d12_heap_properties_public) 结构使用。

当适配器为 UMA 时，D3D12\_MEMORY\_POOL\_L0 和 DXGI\_MEMORY\_SEGMENT\_GROUP\_LOCAL 引用相同内存。

当适配器不是 UMA 时：D3D12\_MEMORY\_POOL\_L0 和 DXGI\_MEMORY\_SEGMENT\_GROUP\_NON\_LOCAL 引用相同内存。D3D12\_MEMORY\_POOL\_L1 和 DXGI\_MEMORY\_SEGMENT\_GROUP\_LOCAL 引用相同内存。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h<br />**库：** d3d12\_xs.lib 或 d3d12\_x.lib<br />**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[核心枚举](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)

[描述符堆](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/descriptor-heaps)


## Related topics

- [D3D12_SHADER_COMPONENT_MAPPING](/zh-CN/reference/graphics/d3d12/enums/d3d12_shader_component_mapping_public.md)
- [D3D12_DRED_ALLOCATION_TYPE](/zh-CN/reference/graphics/d3d12/enums/d3d12_dred_allocation_type_public.md)
- [D3D12_SHADER_CACHE_MODE](/zh-CN/reference/graphics/d3d12/enums/d3d12_shader_cache_mode_public.md)
- [D3D12_SHADER_CACHE_SESSION_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_shader_cache_session_desc_public.md)
- [D3D12_FEATURE_DATA_ARCHITECTURE](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_architecture_public.md)
