5 #include <ThirdParty/Vulkan/Include/vulkan/vulkan.h> 15 VulkanBuffer(VulkanLogicalDevice* device, VmaAllocator allocator, uint32_t size, VkBufferUsageFlags usage,
bool gpu, VkCommandPool pool);
16 VulkanBuffer(VulkanLogicalDevice* device, VmaAllocator allocator, uint32_t size, VkBufferUsageFlags usage, VmaMemoryUsage memoryType, VkCommandPool pool);
19 void CreateBufferView(uint32_t range, uint32_t offset, VkFormat format);
21 VkBuffer GetBuffer()
const;
23 VkBufferView GetBufferView()
const;
25 VmaAllocationInfo getAllocationInfo();
27 void UpdateBuffer(
void* data, uint32_t offset, uint32_t size);
29 void MapBuffer(
void* location);
33 void ClearBuffer()
const;
36 VmaAllocator allocator;
37 VmaAllocation allocation;
38 VmaAllocationInfo allocationInfo;
44 VkBufferUsageFlags usage;
48 VulkanLogicalDevice* device;
59 #endif // USING_VULKAN