14 lines
255 B
C++
14 lines
255 B
C++
|
#include<hgl/graph/vulkan/VKTexture.h>
|
|||
|
VK_NAMESPACE_BEGIN
|
|||
|
Texture::~Texture()
|
|||
|
{
|
|||
|
if(!data)return;
|
|||
|
|
|||
|
if(data->image_view)
|
|||
|
delete data->image_view;
|
|||
|
|
|||
|
if(data->image)
|
|||
|
vkDestroyImage(device,data->image,nullptr);
|
|||
|
}
|
|||
|
VK_NAMESPACE_END
|