---
title: "computeProjection(convention:viewIndex:)"
framework: compositorservices
role: symbol
role_heading: Instance Method
path: "compositorservices/layerrenderer/drawable/computeprojection(convention:viewindex:)"
---

# computeProjection(convention:viewIndex:)

## Declaration

```swift
func computeProjection(convention: AxisDirectionConvention = .rightUpBack, viewIndex: Int) -> matrix_float4x4
```
