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

> 與 EnqueuMakeResident 函式搭配使用，以選擇超出記憶體預算時常駐作業的進行方式。

與 EnqueuMakeResident 函式搭配使用，以選擇超出記憶體預算時常駐作業的進行方式。

## 語法

```cpp theme={null}
typedef enum D3D12_RESIDENCY_FLAGS
{
    D3D12_RESIDENCY_FLAG_NONE = 0,
    D3D12_RESIDENCY_FLAG_DENY_OVERBUDGET = 1
} D3D12_RESIDENCY_FLAGS
```

## 常數

| 常數 | 描述 |
| - | - |
| D3D12\_RESIDENCY\_FLAG\_NONE | 指定預設常駐原則，無論應用程式目前的記憶體預算為何，都允許常駐作業成功。只有在沒有可用記憶體時，EnqueueMakeResident 才會傳回 E\_OUTOFMEMORY。 |
| D3D12\_RESIDENCY\_FLAG\_DENY\_OVERBUDGET | 指定當常駐作業將超出應用程式目前的記憶體預算時，EnqueueMakeResident 函式應傳回 E\_OUTOFMEMORY。 |

## 備註

## 需求

**標頭:** 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

- [EnqueueMakeResident](/zh-TW/reference/graphics/d3d12/interfaces/id3d12device3/methods/id3d12device3_enqueuemakeresident_public.md)
- [D3D12_RESIDENCY_PRIORITY](/zh-TW/reference/graphics/d3d12/enums/d3d12_residency_priority_public.md)
- [D3D12_DSV_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_dsv_flags_public.md)
- [D3D12_FENCE_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
- [D3D12_CLEAR_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_clear_flags_public.md)
