Vulkan/Texture: Support transitioning individual mip levels
This commit is contained in:
parent
2ce5dc3bbe
commit
5236583544
4 changed files with 26 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue