Changeset 6fc24c7 in opengl-game for vulkan-ref.cpp


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

In vulkangame, add code to create a render pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-ref.cpp

    rf94eea9 r6fc24c7  
    177177      vector<VkFramebuffer> swapChainFramebuffers;
    178178
     179/*** START OF REFACTORED CODE ***/
    179180      VkRenderPass renderPass;
     181/*** END OF REFACTORED CODE ***/
    180182
    181183      VkCommandPool commandPool;
     
    319321         createSwapChain();
    320322         createImageViews();
     323         createRenderPass();
    321324/*** END OF REFACTORED CODE ***/
    322          createRenderPass();
    323325
    324326         createCommandPool();
     
    734736         }
    735737      }
    736 /*** END OF REFACTORED CODE ***/
    737738
    738739      void createRenderPass() {
     
    793794         }
    794795      }
     796/*** END OF REFACTORED CODE ***/
    795797
    796798      void initGraphicsPipelineInfo(GraphicsPipelineInfo& info,
     
    10801082      }
    10811083
     1084/*** START OF REFACTORED CODE ***/
    10821085      VkFormat findDepthFormat() {
    10831086         return findSupportedFormat(
     
    11051108         throw runtime_error("failed to find supported format!");
    11061109      }
     1110/*** END OF REFACTORED CODE ***/
    11071111
    11081112      bool hasStencilComponent(VkFormat format) {
     
    19481952         cleanupPipeline(overlayPipeline);
    19491953
     1954/*** START OF REFACTORED CODE ***/
    19501955         vkDestroyRenderPass(device, renderPass, nullptr);
    19511956
    1952 /*** START OF REFACTORED CODE ***/
    19531957         for (auto imageView : swapChainImageViews) {
    19541958            vkDestroyImageView(device, imageView, nullptr);
Note: See TracChangeset for help on using the changeset viewer.