| 9 | #include "VulkanMemoryPool.hpp" |
| 10 | namespace MNN { |
| 11 | VulkanMemory::VulkanMemory(const VulkanDevice& dev, const VkMemoryAllocateInfo& info) : mDevice(dev) { |
| 12 | CALL_VK(mDevice.allocMemory(mMemory, info)); |
| 13 | mTypeIndex = info.memoryTypeIndex; |
| 14 | mSize = info.allocationSize; |
| 15 | } |
| 16 | VulkanMemory::~VulkanMemory() { |
| 17 | mDevice.freeMemory(mMemory); |
| 18 | } |
nothing calls this directly
no test coverage detected