Changeset 6fc24c7 in opengl-game for vulkan-ref.cpp
- Timestamp:
- Sep 27, 2019, 7:58:33 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 0e09340
- Parents:
- f94eea9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-ref.cpp
rf94eea9 r6fc24c7 177 177 vector<VkFramebuffer> swapChainFramebuffers; 178 178 179 /*** START OF REFACTORED CODE ***/ 179 180 VkRenderPass renderPass; 181 /*** END OF REFACTORED CODE ***/ 180 182 181 183 VkCommandPool commandPool; … … 319 321 createSwapChain(); 320 322 createImageViews(); 323 createRenderPass(); 321 324 /*** END OF REFACTORED CODE ***/ 322 createRenderPass();323 325 324 326 createCommandPool(); … … 734 736 } 735 737 } 736 /*** END OF REFACTORED CODE ***/737 738 738 739 void createRenderPass() { … … 793 794 } 794 795 } 796 /*** END OF REFACTORED CODE ***/ 795 797 796 798 void initGraphicsPipelineInfo(GraphicsPipelineInfo& info, … … 1080 1082 } 1081 1083 1084 /*** START OF REFACTORED CODE ***/ 1082 1085 VkFormat findDepthFormat() { 1083 1086 return findSupportedFormat( … … 1105 1108 throw runtime_error("failed to find supported format!"); 1106 1109 } 1110 /*** END OF REFACTORED CODE ***/ 1107 1111 1108 1112 bool hasStencilComponent(VkFormat format) { … … 1948 1952 cleanupPipeline(overlayPipeline); 1949 1953 1954 /*** START OF REFACTORED CODE ***/ 1950 1955 vkDestroyRenderPass(device, renderPass, nullptr); 1951 1956 1952 /*** START OF REFACTORED CODE ***/1953 1957 for (auto imageView : swapChainImageViews) { 1954 1958 vkDestroyImageView(device, imageView, nullptr);
Note:
See TracChangeset
for help on using the changeset viewer.