logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_CancelGPUCommandBuffer - Cancels a command buffer.

Availability

       This function is available since SDL 3.2.0.

Description

       None of the enqueued commands are executed.

       It is an error to call this function after a swapchain texture has been acquired.

       This must be called from the thread the command buffer was acquired on.

       You must not reference the command buffer after calling this function.

Function Parameters

command_buffer
              a command buffer.

Name

       SDL_CancelGPUCommandBuffer - Cancels a command buffer.

Return Value

       for more information.

See Also

SDL_WaitAndAcquireGPUSwapchainTexture(3),                                 SDL_AcquireGPUCommandBuffer(3),
       SDL_AcquireGPUSwapchainTexture(3)

Simple Directmedia Layer                           SDL 3.2.20                      SDL_CancelGPUCommandBuffer(3)

Synopsis

#include<SDL3/SDL_gpu.h>boolSDL_CancelGPUCommandBuffer(SDL_GPUCommandBuffer*command_buffer);

See Also