Etterna 0.75.1
Loading...
Searching...
No Matches
PersistentBuffer.h
1#ifndef RENDERER_VK_BUFFER_HELPER_H
2#define RENDERER_VK_BUFFER_HELPER_H
3
4#include <vulkan/vulkan_raii.hpp>
5#include <vk_mem_alloc.h>
6
8{
9 VkBuffer buffer = VK_NULL_HANDLE;
10 VmaAllocation allocation = VK_NULL_HANDLE;
11 VmaAllocationInfo allocInfo = {};
12 VmaAllocator allocator = nullptr;
13 uint64_t gpuAddress = 0;
14
15 void Init(VmaAllocator allocator,
16 const vk::BufferCreateInfo& createInfo,
17 const VmaAllocationCreateInfo& allocInfo);
18
19 void Destroy();
20
21 vk::Buffer Get() const;
22
23 void* GetMappedData() const;
24};
25
26#endif
Definition PersistentBuffer.h:8