---
name: "SDL_SubmitGPUCommandBuffer"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_SubmitGPUCommandBuffer"
---

# SDL\_SubmitGPUCommandBuffer(3)

Submits a command buffer so its commands can be processed on the GPU.

## NAME

SDL\_SubmitGPUCommandBuffer - Submits a command buffer so its commands can be processed on the GPU.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_SubmitGPUCommandBuffer(**     **SDL\_GPUCommandBuffer \*command\_buffer);**

## DESCRIPTION

It is invalid to use the command buffer after this is called.

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

All commands in the submission are guaranteed to begin executing before any command in a subsequent submission begins executing.

## FUNCTION PARAMETERS

- *command\_buffer*

  a command buffer.

## RETURN VALUE

Returns true on success, false on failure; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_AcquireGPUCommandBuffer**(3)](/SDL_AcquireGPUCommandBuffer/3.md), **•**(3), [**SDL\_WaitAndAcquireGPUSwapchainTexture**(3)](/SDL_WaitAndAcquireGPUSwapchainTexture/3.md), **•**(3), [**SDL\_AcquireGPUSwapchainTexture**(3)](/SDL_AcquireGPUSwapchainTexture/3.md), **•**(3), [**SDL\_SubmitGPUCommandBufferAndAcquireFence**(3)](/SDL_SubmitGPUCommandBufferAndAcquireFence/3.md)
