---
title: MTLLoadAction.clear
framework: metal
role: symbol
role_heading: Case
path: metal/mtlloadaction/clear
---

# MTLLoadAction.clear

The GPU writes a value to every pixel in the attachment at the start of the render pass.

## Declaration

```swift
case clear
```

## Mentioned in

Setting load and store actions

## See Also

### Load actions

- [MTLLoadAction.dontCare](metal/mtlloadaction/dontcare.md)
- [MTLLoadAction.load](metal/mtlloadaction/load.md)
