Acquire a command buffer.
Defined in <SDL3/SDL_gpu.h>
SDL_GPUCommandBuffer* SDL_AcquireGPUCommandBuffer( SDL_GPUDevice *device);
SDL_GPUDevice * | device | a GPU context. |
(SDL_GPUCommandBuffer *) Returns a command buffer, or NULL on failure; call SDL_GetError() for more information.
This command buffer is managed by the implementation and should not be freed by the user. The command buffer may only be used on the thread it was acquired on. The command buffer should be submitted on the thread it was acquired on.
This function is available since SDL 3.1.3.