MCPcopy Create free account
hub / github.com/InoriRus/Kyty / delete_func

Function delete_func

source/emulator/src/Graphics/Objects/Texture.cpp:640–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640static 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
660bool TextureObject::Equal(const uint64_t* other) const
661{

Callers

nothing calls this directly

Calls 2

DeleteDescriptorFunction · 0.85
VulkanFreeFunction · 0.85

Tested by

no test coverage detected