What it does

A CommandBuffer records a sequence of GPU commands, such as draws or image copies. The recorded commands can then run at a chosen point in camera rendering or another supported execution path.

Figure: Conceptual relationship: Record GPU commands → Integrate with pipeline → Execute at chosen stage
Figure: Conceptual relationship: Record GPU commands → Integrate with pipeline → Execute at chosen stage

How to use it

Record draws, copies and clears, then submit them through the appropriate rendering path. URP uses feature/pass integration rather than blindly applying Built-in camera insertion methods.

A concrete example

An intermediate-target effect also needs input/output lifetime management. Recording a command does not ensure execution for the intended camera.

How to check it

  1. Inspect execution placement and targets in Frame Debugger.
    GPU work
    GPU work
  2. Define clear/release or pool-return responsibilities and avoid accumulating stale commands across frames or cameras.
    GPU work
    GPU work

Limitations

Camera.AddCommandBuffer alone is not a general URP pass-injection mechanism.

References