Changeset fa9fa1c in opengl-game for vulkan-ref.cpp


Ignore:
Timestamp:
Sep 27, 2019, 8:53:27 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
7563b8a, a0da009
Parents:
0e09340
Message:

In vulkangame, create the command pool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-ref.cpp

    r0e09340 rfa9fa1c  
    179179/*** START OF REFACTORED CODE ***/
    180180      VkRenderPass renderPass;
     181
     182      VkCommandPool commandPool;
    181183/*** END OF REFACTORED CODE ***/
    182 
    183       VkCommandPool commandPool;
    184184      vector<VkCommandBuffer> commandBuffers;
    185185
     
    322322         createImageViews();
    323323         createRenderPass();
     324
     325         createCommandPool();
    324326/*** END OF REFACTORED CODE ***/
    325 
    326          createCommandPool();
    327327
    328328         createImageResources("textures/texture.jpg", textureImage, textureImageMemory, textureImageView);
     
    10251025      }
    10261026
     1027/*** START OF REFACTORED CODE ***/
    10271028      void createCommandPool() {
    10281029         QueueFamilyIndices queueFamilyIndices = findQueueFamilies(physicalDevice);
     
    10381039      }
    10391040
    1040 /*** START OF REFACTORED CODE ***/
    10411041      QueueFamilyIndices findQueueFamilies(VkPhysicalDevice device) {
    10421042         QueueFamilyIndices indices;
     
    18931893         }
    18941894
     1895/*** START OF REFACTORED CODE ***/
    18951896         vkDestroyCommandPool(device, commandPool, nullptr);
    1896 /*** START OF REFACTORED CODE ***/
    18971897         vkDestroyDevice(device, nullptr);
    18981898         vkDestroySurfaceKHR(instance, surface, nullptr);
Note: See TracChangeset for help on using the changeset viewer.