Cancels a command buffer.
Defined in <SDL3/SDL_gpu.h>
bool SDL_CancelGPUCommandBuffer(
SDL_GPUCommandBuffer *command_buffer);
SDL_GPUCommandBuffer * | command_buffer | a command buffer. |
(bool) Returns true on success, false on error; call SDL_GetError() for more information.
None of the enqueued commands are executed.
This must be called from the thread the command buffer was acquired on.
You must not reference the command buffer after calling this function. It is an error to call this function after a swapchain texture has been acquired.
This function is available since SDL 3.1.3.