SpiecsEngine
Loading...
Searching...
No Matches
◆
~VulkanBuffer()
Spices::VulkanBuffer::~VulkanBuffer
(
)
override
virtual
Destructor Function.
Destroy Vkbuffer.
Destroy Vkbuffer.
Definition at line
35
of file
VulkanBuffer.cpp
.
36
{
37
SPICES_PROFILE_ZONE
;
38
39
#if VMA_ALLOCATOR
40
44
vmaDestroyBuffer(
m_VulkanState
.
m_VmaAllocator
,
m_Buffer
,
m_Alloc
);
45
46
#else
47
48
if
(m_LocalMemory)
49
{
50
vkUnmapMemory(
m_VulkanState
.
m_Device
, m_BufferMemory);
51
}
52
56
vkDestroyBuffer(
m_VulkanState
.
m_Device
,
m_Buffer
,
nullptr
);
57
vkFreeMemory(
m_VulkanState
.
m_Device
, m_BufferMemory,
nullptr
);
58
59
#endif
60
61
}
SPICES_PROFILE_ZONE
#define SPICES_PROFILE_ZONE
Definition
TracyProfilerWrapper.h:100
Spices::VulkanBuffer::m_Buffer
VkBuffer m_Buffer
The buffer this class handled.
Definition
VulkanBuffer.h:181
Spices::VulkanBuffer::m_Alloc
VmaAllocation m_Alloc
VMA allocation.
Definition
VulkanBuffer.h:193
Spices::VulkanObject::m_VulkanState
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.
Definition
VulkanUtils.h:165
Spices::VulkanState::m_VmaAllocator
VmaAllocator m_VmaAllocator
Definition
VulkanUtils.h:97
Spices::VulkanState::m_Device
VkDevice m_Device
Definition
VulkanUtils.h:96
Spices
VulkanBuffer
Generated on Sun Mar 8 2026 10:24:50 for SpiecsEngine by
1.10.0