# currentBackbufferMSAASamples

> Get the actual MSAA sample count that the backbuffer is ready to use this frame.

## Definition

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

```csharp
public static int currentBackbufferMSAASamples { get; }
```

### Remarks

Use this property to determine the MSAA sample count when setting up render passes that target the backbuffer. Native render passes require all attachments to have matching sample counts; using this value ensures that intermediate MSAA attachments match what the backbuffer actually supports this frame.

This may differ from [Screen.msaaSamples](/engine/6000.6/script-reference/unityengine/screen/msaasamples.md), which returns the last requested value. After changing the MSAA sample count via [Screen.SetMSAASamples](/engine/6000.6/script-reference/unityengine/screen/setmsaasamples.md), some backends need time to apply the change. During that transition, this property returns 1 (no MSAA) until the backend is ready, ensuring render pass setup remains valid.

Returns 1 if [SystemInfo.supportsMultisampledBackBuffer](/engine/6000.6/script-reference/unityengine/systeminfo/supportsmultisampledbackbuffer.md) is false, or if the backbuffer surface does not yet exist.

See also: [Screen.SetMSAASamples](/engine/6000.6/script-reference/unityengine/screen/setmsaasamples.md), [Screen.msaaSamples](/engine/6000.6/script-reference/unityengine/screen/msaasamples.md), [SystemInfo.supportsMultisampledBackBuffer](/engine/6000.6/script-reference/unityengine/systeminfo/supportsmultisampledbackbuffer.md)
