> ## 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](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public)。 |
| D3D12\_RESIDENCY\_PRIORITY\_MAXIMUM | 表示最高優先順序。不建議應用程式使用高於此值的優先順序；不保證 **D3D12\_RESIDENCY\_PRIORITY\_MAXIMUM** 一定可用。如需詳細資訊，請參閱 [ID3D12Device1::SetResidencyPriority](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public) |

## 備註

此列舉由 [SetResidencyPriority](/zh-TW/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-TW/reference/graphics/d3d12/interfaces/id3d12device1/methods/id3d12device1_setresidencypriority_public.md)
- [D3D12_RESIDENCY_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_residency_flags_public.md)
- [D3D12_COMMAND_QUEUE_PRIORITY](/zh-TW/reference/graphics/d3d12/enums/d3d12_command_queue_priority_public.md)
- [D3D12_FEATURE_DATA_COMMAND_QUEUE_PRIORITY](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_command_queue_priority_public.md)
- [D3D12_COMMAND_QUEUE_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_command_queue_desc_public.md)
