---
title: "encodeRefit(commandBuffer:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsaccelerationstructure/encoderefit(commandbuffer:)"
---

# encodeRefit(commandBuffer:)

## Declaration

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