# maxGraphicsBufferSize

> The maximum size of a graphics buffer ( GraphicsBuffer, ComputeBuffer, vertex/index buffer, etc.) in bytes (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static long maxGraphicsBufferSize { get; }
```

### Remarks

Any GPU buffer ([GraphicsBuffer](/engine/6000.7/script-reference/unityengine/graphicsbuffer.md), [ComputeBuffer](/engine/6000.7/script-reference/unityengine/computebuffer.md) or a vertex/index buffer used by a [Mesh](/engine/6000.7/script-reference/unityengine/mesh.md)) can not be larger than this amount of bytes.

### Examples

```csharp
using UnityEngine;

public class ExampleScript : MonoBehaviour
{
    void Start()
    {
        // prints maximum graphics buffer size, in megabytes
        var maxSizeMb = SystemInfo.maxGraphicsBufferSize / 1024 / 1024;
        Debug.Log($"Maximum graphics buffer size is {maxSizeMb} MB");
    }
}
```
