ULRE/src/RenderDevice/Vulkan/VKTexture.cpp

15 lines
296 B
C++
Raw Normal View History

2019-05-18 15:41:49 +08:00
#include<hgl/graph/vulkan/VKTexture.h>
#include<hgl/graph/vulkan/VKImageView.h>
2019-05-18 15:41:49 +08:00
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