Changeset e83b155 in opengl-game for vulkan-utils.cpp


Ignore:
Timestamp:
Oct 18, 2019, 2:40:47 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
603b5bc
Parents:
b794178
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (10/18/19 14:38:29)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (10/18/19 14:40:47)
Message:

In vulkangame, destroy the texture sampler, all the uniform buffer resources, and all the resources for each Vulkan image before terminating the program

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-utils.cpp

    rb794178 re83b155  
    475475   return format == VK_FORMAT_D32_SFLOAT_S8_UINT || format == VK_FORMAT_D24_UNORM_S8_UINT;
    476476}
     477
     478void VulkanUtils::destroyVulkanImage(VkDevice& device, VulkanImage& image) {
     479   vkDestroyImageView(device, image.imageView, nullptr);
     480   vkDestroyImage(device, image.image, nullptr);
     481   vkFreeMemory(device, image.imageMemory, nullptr);
     482}
Note: See TracChangeset for help on using the changeset viewer.