andersch.dev

<2024-07-03 Wed>

Command Buffer

A command buffer (or pushbuffer) is a construct that enables a developer to collect code as data for later execution, e.g. by storing parameters to a function (and the function itself in some form) in a buffer and later iterating over that buffer and executing the function instead of calling the function directly then and there.

Command buffers are popular in rendering APIs, since operations can be batched and uniformly performed on the buffer (such as sorting), before actually issuing draw calls.