# GetConstantBufferMaxWindowSize()

> Defines the maxiumum amount (in bytes) the BatchRendererGroup constant buffer window size is visible from the shader.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static int GetConstantBufferMaxWindowSize()
```

### Returns

| Type                                                       | Description                       |
| ---------------------------------------------------------- | --------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The maximum window size in bytes. |

### Remarks

The BatchRendererGroup API is different from [SystemInfo.maxConstantBufferSize](/engine/6000.0/script-reference/unityengine/systeminfo/maxconstantbuffersize.md) because it uses Universal Buffer Objects (UBOs) in a different way from other rendering paths. This means it requires different size and alignment constraints on GL platforms.
