---
title: endResidency()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlresidencyset/endresidency()
---

# endResidency()

Informs Metal that the residency set’s allocations no longer need to be resident, and that it can reuse the memory for other allocations.

## Declaration

```swift
func endResidency()
```

## Mentioned in

Simplifying GPU resource management with residency sets
