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_GPUCommandBuffer - An opaque handle representing a command buffer.

Availability

       This struct is available since SDL 3.2.0.

Description

       Most state is managed via command buffers. When setting state using a command buffer, that state is local
       to the command buffer.

       Commands only begin execution on the GPU once

       SDL_SubmitGPUCommandBuffer
        is called. Once the command buffer is submitted, it is no longer valid to use it.

       Command  buffers are executed in submission order. If you submit command buffer A and then command buffer
       B all commands in A will begin executing before any command in B begins executing.

       In multi-threading scenarios, you should only access a command buffer on the thread you acquired it from.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_GPUCommandBuffer - An opaque handle representing a command buffer.

See Also

(3),       SDL_AcquireGPUCommandBuffer(3),       (3),       SDL_SubmitGPUCommandBuffer(3),        (3),
       SDL_SubmitGPUCommandBufferAndAcquireFence(3)

Simple Directmedia Layer                           SDL 3.2.10                        SDL_GPUCommandBuffer(3type)

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_GPUCommandBufferSDL_GPUCommandBuffer;

See Also