GetConstantBufferMaxWindowSize()
Defines the maxiumum amount (in bytes) the BatchRendererGroup constant buffer window size is visible from the shader.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public static int GetConstantBufferMaxWindowSize()
Returns
Type | Description |
|---|---|
| int | The maximum window size in bytes. |
Remarks
The BatchRendererGroup API is different from SystemInfo.maxConstantBufferSize 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.