# Flush()

> Flush the device context.

## Definition

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

```csharp
public bool Flush()
```

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the flush was successful. |

### Remarks

Start execution of the enqueued operations on the device. On some platforms the underlying implementation or driver flushes automatically, on others it is up to the user to call [ReferenceContext.Flush](/engine/6000.6/script-reference/unityengine/lighttransport/referencecontext/flush.md). The [ReferenceContext.Flush](/engine/6000.6/script-reference/unityengine/lighttransport/referencecontext/flush.md) method returns immediately.
