Код: Выделить всё
void* data;
vmaMapMemory(mRenderData.rdAllocator, mVertexBufferAlloc, &data);
std::memcpy(data, vertexData.vertices.data(), vertexData.vertices.size() * sizeof(VkVertex));
vmaUnmapMemory(mRenderData.rdAllocator, mVertexBufferAlloc);
Подробнее здесь: https://stackoverflow.com/questions/797 ... emory-leak
Мобильная версия