---
title: "encode(commandBuffer:)"
framework: metalfx
role: symbol
role_heading: Instance Method
path: "metalfx/mtlfxtemporaldenoisedscaler/encode(commandbuffer:)"
---

# encode(commandBuffer:)

Encode this scaler denoiser’s work into a command buffer.

## Declaration

```swift
func encode(commandBuffer: any MTLCommandBuffer)
```

## Parameters

- `commandBuffer`: A command buffer into which this scaler denoiser encodes work.
