mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
TextureBatch tiny optimization: Use vector.reserve
This commit is contained in:
parent
b7d28cd10a
commit
3c810521e2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue