TextureBatch tiny optimization: Use vector.reserve

This commit is contained in:
Henrik Rydgård 2023-09-18 14:49:13 +02:00
parent b7d28cd10a
commit 3c810521e2

View File

@ -821,6 +821,7 @@ void VKTexture::UpdateInternal(VkCommandBuffer cmd, VulkanPushPool *pushBuffer,
int bpp = GetBpp(vulkanFormat);
int bytesPerPixel = bpp / 8;
TextureCopyBatch batch;
batch.reserve(numLevels);
for (i = 0; i < numLevels; i++) {
uint32_t offset;
VkBuffer buf;