mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 16:37:39 +00:00
fix comment
This commit is contained in:
parent
44f1ec35c4
commit
2f77558bad
1 changed files with 1 additions and 4 deletions
|
@ -6814,15 +6814,12 @@ static SDL_GPUTransferBuffer *VULKAN_CreateTransferBuffer(
|
||||||
Uint32 size,
|
Uint32 size,
|
||||||
const char *debugName)
|
const char *debugName)
|
||||||
{
|
{
|
||||||
// We use dedicated allocations for download buffers to avoid an issue
|
|
||||||
// where a defrag is triggered after submitting a download but before
|
|
||||||
// waiting on the fence.
|
|
||||||
return (SDL_GPUTransferBuffer *)VULKAN_INTERNAL_CreateBufferContainer(
|
return (SDL_GPUTransferBuffer *)VULKAN_INTERNAL_CreateBufferContainer(
|
||||||
(VulkanRenderer *)driverData,
|
(VulkanRenderer *)driverData,
|
||||||
(VkDeviceSize)size,
|
(VkDeviceSize)size,
|
||||||
0,
|
0,
|
||||||
VULKAN_BUFFER_TYPE_TRANSFER,
|
VULKAN_BUFFER_TYPE_TRANSFER,
|
||||||
true,
|
true, // Dedicated allocations preserve the data even if a defrag is triggered.
|
||||||
debugName);
|
debugName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue