> ## 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-CN/reference/graphics/d3d12/interfaces/id3d12device3/methods/id3d12device3_enqueuemakeresident_public.md)
- [D3D12_RESIDENCY_PRIORITY](/zh-CN/reference/graphics/d3d12/enums/d3d12_residency_priority_public.md)
- [D3D12_DSV_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_dsv_flags_public.md)
- [D3D12_FENCE_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
- [D3D12_CLEAR_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_clear_flags_public.md)
