---
title: reset()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtlindirectrendercommand/reset()
---

# reset()

Resets the command to its default state.

## Declaration

```swift
func reset()
```

## Discussion

Discussion A command that has been reset loses any state that you previously set and does nothing when executed.
