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

# encode(commandBuffer:)

Adds the temporal scaling command to a render pass’s command buffer.

## Declaration

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

## Parameters

- `commandBuffer`: The destination command buffer for a render pass.
