SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ~SlateImage()

Spices::SlateImage::~SlateImage ( )
virtual

Destructor Function.

Free old Texture image DescriptorSet.

Unload useless material.

Free old Texture image DescriptorSet.

Unload useless material.

Definition at line 27 of file SlateImage.cpp.

28 {
30
34 if (m_TextureID)
35 {
36 ImGui_ImplVulkan_RemoveTexture(reinterpret_cast<VkDescriptorSet>(m_TextureID));
37 m_TextureID = 0;
38 }
39
43 if (m_Material)
44 {
46 }
47 }
#define SPICES_PROFILE_ZONE
static void UnLoad(const std::string &path)
UnLoad a resource by path.
std::shared_ptr< Material > m_Material
This Slate image draw material.
Definition SlateImage.h:65
ImTextureID m_TextureID
ImTextureID.
Definition SlateImage.h:60