---
title: endEncoding()
framework: metal
role: symbol
role_heading: Instance Method
path: metal/mtl4commandencoder/endencoding()
---

# endEncoding()

Declares that all command generation from this encoder is complete.

## Declaration

```swift
func endEncoding()
```

## Mentioned in

Synchronizing stages within a pass
