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.
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
- Inspect execution placement and targets in Frame Debugger.
GPU work - Define clear/release or pool-return responsibilities and avoid accumulating stale commands across frames or cameras.
GPU work
Limitations
Camera.AddCommandBuffer alone is not a general URP pass-injection mechanism.