SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ~VulkanImage()

Spices::VulkanImage::~VulkanImage ( )
overridevirtual

Destructor Function.

Destroy DescriptorSet.

Destroy reltative object.

Destroy VkImage.

Destroy DescriptorSet.

Destroy reltative object.

Destroy VkImage.

Definition at line 61 of file VulkanImage.cpp.

62 {
64
69
73 vkDestroySampler(m_VulkanState.m_Device, m_TextureSampler, nullptr);
74
75 for (int i = 0; i < m_ImageViews.size(); i++)
76 {
77 vkDestroyImageView(m_VulkanState.m_Device, m_ImageViews[i], nullptr);
78 }
79
80#if VMA_ALLOCATOR
81
86
87#else
88
92 vkDestroyImage(m_VulkanState.m_Device, m_Image, nullptr);
93 vkFreeMemory(m_VulkanState.m_Device, m_ImageMemory, nullptr);
94
95#endif
96
97 }
#define SPICES_PROFILE_ZONE
VmaAllocation m_Alloc
VMA allocation.
void DestroyDescriptorSetLayout() const
Destroy the DescriptorSetLayout if Created a DescriptorSet.
VkDeviceMemory m_ImageMemory
The image video memory.
VkSampler m_TextureSampler
The image sampler.
std::vector< VkImageView > m_ImageViews
The image view.
VkImage m_Image
The VkImage this Class Wrapped.
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.
VmaAllocator m_VmaAllocator
Definition VulkanUtils.h:97

References DestroyDescriptorSetLayout().