Vulkan/Texture: Support transitioning individual mip levels

This commit is contained in:
Connor McLaughlin
2020-12-30 14:58:11 +10:00
parent 2ce5dc3bbe
commit 5236583544
4 changed files with 26 additions and 7 deletions

View File

@ -229,6 +229,15 @@ void SafeDestroyBufferView(VkBufferView& bv)
}
}
void SafeDestroyImageView(VkImageView& iv)
{
if (iv != VK_NULL_HANDLE)
{
vkDestroyImageView(g_vulkan_context->GetDevice(), iv, nullptr);
iv = VK_NULL_HANDLE;
}
}
void SafeDestroySampler(VkSampler& samp)
{
if (samp != VK_NULL_HANDLE)