GPU Vulkan: Use dedicated allocation for download buffers (#11298)

This commit is contained in:
Evan Hemsley
2024-10-23 09:37:06 -07:00
committed by GitHub
parent 24b376ef18
commit 423337796c
2 changed files with 125 additions and 98 deletions

View File

@@ -2294,6 +2294,9 @@ extern SDL_DECLSPEC SDL_GPUBuffer *SDLCALL SDL_CreateGPUBuffer(
* Creates a transfer buffer to be used when uploading to or downloading from
* graphics resources.
*
* Download buffers can be particularly expensive to create,
* so it is good practice to reuse them if data will be downloaded regularly.
*
* \param device a GPU Context.
* \param createinfo a struct describing the state of the transfer buffer to
* create.