Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcosmonaut committed Feb 10, 2025
1 parent f324dc7 commit 2d7ff63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gpu/vulkan/SDL_gpu_vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -6840,15 +6840,12 @@ static SDL_GPUTransferBuffer *VULKAN_CreateTransferBuffer(
Uint32 size,
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(
(VulkanRenderer *)driverData,
(VkDeviceSize)size,
0,
VULKAN_BUFFER_TYPE_TRANSFER,
true,
true, // Dedicated allocations preserve the data even if a defrag is triggered.
debugName);
}

Expand Down

0 comments on commit 2d7ff63

Please sign in to comment.