# CommandBufferExecutionFlags

> Flags describing the intention for how the command buffer will be executed. Set these via CommandBuffer.SetExecutionFlags.

## Definition

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

```csharp
public enum CommandBufferExecutionFlags
```

## Fields

| Value                                                                                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AsyncCompute](/engine/6000.0/script-reference/unityengine/rendering/commandbufferexecutionflags/asynccompute.md) | Command buffers flagged for async compute execution will throw exceptions if non-compatible commands are added to them. See [ScriptableRenderContext.ExecuteCommandBufferAsync](/engine/6000.0/script-reference/unityengine/rendering/scriptablerendercontext/executecommandbufferasync.md) and [Graphics.ExecuteCommandBufferAsync](/engine/6000.0/script-reference/unityengine/graphics/executecommandbufferasync.md). |
| [None](/engine/6000.0/script-reference/unityengine/rendering/commandbufferexecutionflags/none.md)                 | When no flags are specified, the command buffer is considered valid for all means of execution. This is the default for new command buffers.                                                                                                                                                                                                                                                                             |
