| 638 | } |
| 639 | |
| 640 | static void delete_func(GraphicContext* ctx, void* obj, VulkanMemory* mem) |
| 641 | { |
| 642 | KYTY_PROFILER_BLOCK("TextureObject::delete_func"); |
| 643 | |
| 644 | auto* vk_obj = reinterpret_cast<TextureVulkanImage*>(obj); |
| 645 | |
| 646 | EXIT_IF(vk_obj == nullptr); |
| 647 | EXIT_IF(ctx == nullptr); |
| 648 | |
| 649 | DeleteDescriptor(vk_obj); |
| 650 | |
| 651 | vkDestroyImageView(ctx->device, vk_obj->image_view[VulkanImage::VIEW_DEFAULT], nullptr); |
| 652 | |
| 653 | vkDestroyImage(ctx->device, vk_obj->image, nullptr); |
| 654 | |
| 655 | VulkanFree(ctx, mem); |
| 656 | |
| 657 | delete vk_obj; |
| 658 | } |
| 659 | |
| 660 | bool TextureObject::Equal(const uint64_t* other) const |
| 661 | { |
nothing calls this directly
no test coverage detected