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

Function delete_func

source/emulator/src/Graphics/Objects/StorageTexture.cpp:332–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332static void delete_func(GraphicContext* ctx, void* obj, VulkanMemory* mem)
333{
334 KYTY_PROFILER_BLOCK("StorageTextureObject::delete_func");
335
336 auto* vk_obj = reinterpret_cast<StorageTextureVulkanImage*>(obj);
337
338 EXIT_IF(vk_obj == nullptr);
339 EXIT_IF(ctx == nullptr);
340
341 DeleteDescriptor(vk_obj);
342
343 vkDestroyImageView(ctx->device, vk_obj->image_view[VulkanImage::VIEW_DEFAULT], nullptr);
344
345 vkDestroyImage(ctx->device, vk_obj->image, nullptr);
346
347 VulkanFree(ctx, mem);
348
349 delete vk_obj;
350}
351
352bool StorageTextureObject::Equal(const uint64_t* other) const
353{

Callers

nothing calls this directly

Calls 2

DeleteDescriptorFunction · 0.85
VulkanFreeFunction · 0.85

Tested by

no test coverage detected