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

> Used with the EnqueuMakeResident function to choose how residency operations proceed when the memory budget is exceeded.

Used with the EnqueuMakeResident function to choose how residency operations proceed when the memory budget is exceeded.

## Syntax

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

## Constants

| Constant                                 | Description                                                                                                                                                                                                                    |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| D3D12\_RESIDENCY\_FLAG\_NONE             | Specifies the default residency policy, which allows residency operations to succeed regardless of the application's current memory budget. EnqueueMakeResident returns E\_OUTOFMEMORY only when there is no memory available. |
| D3D12\_RESIDENCY\_FLAG\_DENY\_OVERBUDGET | Specifies that the EnqueueMakeResident function should return E\_OUTOFMEMORY when the residency operation would exceed the application's current memory budget.                                                                |

## Remarks

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h<br />**Library:** d3d12\_xs.lib or d3d12\_x.lib<br />**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

[Core Enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)


## Related topics

- [EnqueueMakeResident](/reference/graphics/d3d12/interfaces/id3d12device3/methods/id3d12device3_enqueuemakeresident_public.md)
- [D3D12_RESIDENCY_PRIORITY](/reference/graphics/d3d12/enums/d3d12_residency_priority_public.md)
- [D3D12_FENCE_FLAGS](/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
- [D3D12_DSV_FLAGS](/reference/graphics/d3d12/enums/d3d12_dsv_flags_public.md)
- [D3D12_DRED_FLAGS](/reference/graphics/d3d12/enums/d3d12_dred_flags_public.md)
