---
title: "encodeRender(to:frameAttributes:sourceImage:sourceDisparity:destinationRGBA:)"
framework: cinematic
role: symbol
role_heading: Instance Method
path: "cinematic/cnrenderingsession-1hzh8/encoderender(to:frameattributes:sourceimage:sourcedisparity:destinationrgba:)"
---

# encodeRender(to:frameAttributes:sourceImage:sourceDisparity:destinationRGBA:)

## Declaration

```swift
func encodeRender(to commandBuffer: any MTLCommandBuffer, frameAttributes: CNRenderingSession.FrameAttributes, sourceImage: CVPixelBuffer, sourceDisparity: CVPixelBuffer, destinationRGBA: any MTLTexture) -> Bool
```
