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

> 指定用于快速建立应用程序优先级方案的宽泛驻留优先级区间。

指定用于快速建立应用程序优先级方案的宽泛驻留优先级区间。

应用程序可以分配除此枚举中包含的五个值以外的优先级值。

## 语法

```cpp theme={null}
typedef enum D3D12_RESIDENCY_PRIORITY
{
    D3D12_RESIDENCY_PRIORITY_MINIMUM = 671088640,
    D3D12_RESIDENCY_PRIORITY_LOW = 1342177280,
    D3D12_RESIDENCY_PRIORITY_NORMAL = 2013265920,
    D3D12_RESIDENCY_PRIORITY_HIGH = -1610547200,
    D3D12_RESIDENCY_PRIORITY_MAXIMUM = -939524096
} D3D12_RESIDENCY_PRIORITY
```

## 常量

| 常量                                  | 描述                                                                                                                                                                                                                             |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| D3D12\_RESIDENCY\_PRIORITY\_MINIMUM | 表示最低优先级。                                                                                                                                                                                                                       |
| D3D12\_RESIDENCY\_PRIORITY\_LOW     | 表示低优先级。                                                                                                                                                                                                                        |
| D3D12\_RESIDENCY\_PRIORITY\_NORMAL  | 表示正常的中等优先级。                                                                                                                                                                                                                    |
| D3D12\_RESIDENCY\_PRIORITY\_HIGH    | 表示高优先级。不建议应用程序使用大于此值的优先级。有关详细信息，请参阅 [ID3D12Device1::SetResidencyPriority](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public)。                                               |
| D3D12\_RESIDENCY\_PRIORITY\_MAXIMUM | 表示最高优先级。不建议应用程序使用大于此值的优先级；**D3D12\_RESIDENCY\_PRIORITY\_MAXIMUM** 不保证可用。有关详细信息，请参阅 [ID3D12Device1::SetResidencyPriority](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public) |

## 备注

此枚举由 [SetResidencyPriority](/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public) 方法使用。

## 要求

**头文件：** 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)


## Related topics

- [SetResidencyPriority](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public.md)
- [D3D12_RESIDENCY_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_residency_flags_public.md)
- [D3D12_COMMAND_QUEUE_PRIORITY](/zh-CN/reference/graphics/d3d12/enums/d3d12_command_queue_priority_public.md)
- [D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY](/zh-CN/reference/graphics/d3d12/structs/d3d12_feature_data_command_queue_priority_public.md)
- [D3D12_COMMAND_QUEUE_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_command_queue_desc_public.md)
