18 #ifndef INCLUDED_RENDERER_BACKEND_VULKAN_BUFFER 19 #define INCLUDED_RENDERER_BACKEND_VULKAN_BUFFER 24 #include <glad/vulkan.h> 59 static std::unique_ptr<CBuffer>
Create(
82 #endif // INCLUDED_RENDERER_BACKEND_VULKAN_BUFFER
~CBuffer() override
Definition: Buffer.cpp:101
VmaAllocation m_Allocation
Definition: Buffer.h:72
Type
Definition: IBuffer.h:34
VmaAllocationInfo m_AllocationInfo
Definition: Buffer.h:73
void * GetMappedData()
Definition: Buffer.h:54
IDevice * GetDevice() override
Definition: Buffer.cpp:108
VkBuffer GetVkBuffer()
Definition: Buffer.h:49
Type GetType() const override
Definition: Buffer.h:45
bool IsDynamic() const override
Definition: Buffer.h:47
Represents single memory allocation.
CDevice * m_Device
Definition: Buffer.h:65
Parameters of VmaAllocation objects, that can be retrieved using function vmaGetAllocationInfo().
Definition: vk_mem_alloc.h:1336
uint32_t m_Size
Definition: Buffer.h:68
Backend
Definition: Backend.h:27
void *VMA_NULLABLE pMappedData
Pointer to the beginning of this allocation as mapped data.
Definition: vk_mem_alloc.h:1379
bool m_Dynamic
Definition: Buffer.h:69
Type m_Type
Definition: Buffer.h:67
unsigned int uint32_t
Definition: wposix_types.h:53
Definition: VideoMode.h:28
VkBuffer m_Buffer
Definition: Buffer.h:71
static std::unique_ptr< CBuffer > Create(CDevice *device, const char *name, const Type type, const uint32_t size, const bool dynamic)
Definition: Buffer.cpp:34
uint32_t GetSize() const override
Definition: Buffer.h:46