# GetRenderPassCount()

> The number of XRDisplaySubsystem.XRRenderPass entries for this XR Display.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.XR](/engine/6000.0/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule

```csharp
public int GetRenderPassCount()
```

### Returns

| Type                                                       | Description             |
| ---------------------------------------------------------- | ----------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Count of render passes. |
