Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command buffer and swapchain usage clarification #41

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion include/SDL3/SDL_gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,8 @@ extern SDL_DECLSPEC SDL_GpuTextureFormat SDLCALL SDL_GpuGetSwapchainTextureForma
/**
* Acquire a command buffer.
* This command buffer is managed by the implementation and should not be freed by the user.
* A command buffer may only be used on the thread it was acquired on.
* 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.
*
* \param device a GPU context
* \returns a command buffer
Expand All @@ -1952,6 +1953,7 @@ extern SDL_DECLSPEC SDL_GpuCommandBuffer *SDLCALL SDL_GpuAcquireCommandBuffer(
* Acquire a texture to use in presentation.
* When a swapchain texture is acquired on a command buffer,
* it will automatically be submitted for presentation when the command buffer is submitted.
* The swapchain texture should only be referenced by the command buffer used to acquire it.
* May return NULL under certain conditions. This is not necessarily an error.
* This texture is managed by the implementation and must not be freed by the user.
* You MUST NOT call this function from any thread other than the one that created the window.
Expand Down
Loading