ULRE/src/RenderDevice/Vulkan/VKTexture.cpp

15 lines
296 B
C++

#include<hgl/graph/vulkan/VKTexture.h>
#include<hgl/graph/vulkan/VKImageView.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