Commit 84450f1 1 parent f2fb055 commit 84450f1 Copy full SHA for 84450f1
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1935,7 +1935,8 @@ extern SDL_DECLSPEC SDL_GpuTextureFormat SDLCALL SDL_GpuGetSwapchainTextureForma
1935
1935
/**
1936
1936
* Acquire a command buffer.
1937
1937
* This command buffer is managed by the implementation and should not be freed by the user.
1938
- * A command buffer may only be used on the thread it was acquired on.
1938
+ * The command buffer may only be used on the thread it was acquired on.
1939
+ * The command buffer should be submitted on the thread it was acquired on.
1939
1940
*
1940
1941
* \param device a GPU context
1941
1942
* \returns a command buffer
@@ -1952,6 +1953,7 @@ extern SDL_DECLSPEC SDL_GpuCommandBuffer *SDLCALL SDL_GpuAcquireCommandBuffer(
1952
1953
* Acquire a texture to use in presentation.
1953
1954
* When a swapchain texture is acquired on a command buffer,
1954
1955
* it will automatically be submitted for presentation when the command buffer is submitted.
1956
+ * The swapchain texture should only be referenced by the command buffer used to acquire it.
1955
1957
* May return NULL under certain conditions. This is not necessarily an error.
1956
1958
* This texture is managed by the implementation and must not be freed by the user.
1957
1959
* You MUST NOT call this function from any thread other than the one that created the window.
You can’t perform that action at this time.
0 commit comments