Files
CosmicEngine/src/Engine/Core/Graphics/API/VMABuffer.hpp

15 lines
325 B
C++

#ifndef VMABUFFER_HPP
#define VMABUFFER_HPP
#include "vk_mem_alloc.h"
typedef struct vmaBufferStruct {
VkBuffer buffer = VK_NULL_HANDLE;
VmaAllocation allocation = VK_NULL_HANDLE;
void destroy(VmaAllocator allocator) {
vmaDestroyBuffer(allocator, buffer, allocation);
}
}VMABuffer;
#endif