| 330 | } |
| 331 | |
| 332 | static 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 | |
| 352 | bool StorageTextureObject::Equal(const uint64_t* other) const |
| 353 | { |
nothing calls this directly
no test coverage detected