mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 01:08:26 +00:00
Sync SDL3 wiki -> header
[ci skip]
This commit is contained in:
parent
b4dff42dcd
commit
6647345be0
1 changed files with 11 additions and 7 deletions
|
@ -3529,10 +3529,11 @@ extern SDL_DECLSPEC SDL_GPUTextureFormat SDLCALL SDL_GetGPUSwapchainTextureForma
|
||||||
* freed by the user. You MUST NOT call this function from any thread other
|
* freed by the user. You MUST NOT call this function from any thread other
|
||||||
* than the one that created the window.
|
* than the one that created the window.
|
||||||
*
|
*
|
||||||
* When using SDL_GPU_PRESENTMODE_VSYNC, this function will block if too many frames are in flight.
|
* When using SDL_GPU_PRESENTMODE_VSYNC, this function will block if too many
|
||||||
* Otherwise, this function will fill the swapchain texture handle with NULL if too many frames are in flight.
|
* frames are in flight. Otherwise, this function will fill the swapchain
|
||||||
* The best practice is to call SDL_CancelGPUCommandBuffer if the swapchain texture handle is NULL
|
* texture handle with NULL if too many frames are in flight. The best
|
||||||
* to avoid enqueuing needless work on the GPU.
|
* practice is to call SDL_CancelGPUCommandBuffer if the swapchain texture
|
||||||
|
* handle is NULL to avoid enqueuing needless work on the GPU.
|
||||||
*
|
*
|
||||||
* \param command_buffer a command buffer.
|
* \param command_buffer a command buffer.
|
||||||
* \param window a window that has been claimed.
|
* \param window a window that has been claimed.
|
||||||
|
@ -3611,12 +3612,15 @@ extern SDL_DECLSPEC SDL_GPUFence *SDLCALL SDL_SubmitGPUCommandBufferAndAcquireFe
|
||||||
SDL_GPUCommandBuffer *command_buffer);
|
SDL_GPUCommandBuffer *command_buffer);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels a command buffer. None of the enqueued commands are executed.
|
* Cancels a command buffer.
|
||||||
|
*
|
||||||
|
* None of the enqueued commands are executed.
|
||||||
*
|
*
|
||||||
* This must be called from the thread the command buffer was acquired on.
|
* This must be called from the thread the command buffer was acquired on.
|
||||||
*
|
*
|
||||||
* You must not reference the command buffer after calling this function.
|
* You must not reference the command buffer after calling this function. It
|
||||||
* It is an error to call this function after a swapchain texture has been acquired.
|
* is an error to call this function after a swapchain texture has been
|
||||||
|
* acquired.
|
||||||
*
|
*
|
||||||
* \param command_buffer a command buffer.
|
* \param command_buffer a command buffer.
|
||||||
* \returns true on success, false on error; call SDL_GetError() for more
|
* \returns true on success, false on error; call SDL_GetError() for more
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue