| 5665 | } |
| 5666 | Item& operator=(const Item& src) = delete; |
| 5667 | void DestroyResources() |
| 5668 | { |
| 5669 | if(Buf) |
| 5670 | { |
| 5671 | assert(Image == VK_NULL_HANDLE); |
| 5672 | vmaDestroyBuffer(g_hAllocator, Buf, Alloc); |
| 5673 | Buf = VK_NULL_HANDLE; |
| 5674 | } |
| 5675 | else |
| 5676 | { |
| 5677 | vmaDestroyImage(g_hAllocator, Image, Alloc); |
| 5678 | Image = VK_NULL_HANDLE; |
| 5679 | } |
| 5680 | Alloc = VK_NULL_HANDLE; |
| 5681 | } |
| 5682 | VkDeviceSize CalcSizeBytes() const |
| 5683 | { |
| 5684 | return BufferSize + |
no test coverage detected