Changeset 34bdf3a in opengl-game for vulkan-ref.cpp
- Timestamp:
- Oct 24, 2019, 3:35:49 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 87c8f1a
- Parents:
- 603b5bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-ref.cpp
r603b5bc r34bdf3a 27 27 using namespace glm; 28 28 29 /*** START OF REFACTORED CODE ***/ 29 30 const int SCREEN_WIDTH = 800; 30 31 const int SCREEN_HEIGHT = 600; … … 32 33 const int MAX_FRAMES_IN_FLIGHT = 2; 33 34 34 /*** START OF REFACTORED CODE ***/35 35 #ifdef NDEBUG 36 36 const bool enableValidationLayers = false; … … 219 219 GraphicsPipelineInfo scenePipeline; 220 220 GraphicsPipelineInfo overlayPipeline; 221 /*** END OF REFACTORED CODE ***/222 221 223 222 vector<VkSemaphore> imageAvailableSemaphores; 224 223 vector<VkSemaphore> renderFinishedSemaphores; 225 224 vector<VkFence> inFlightFences; 225 /*** END OF REFACTORED CODE ***/ 226 226 227 227 size_t currentFrame = 0; … … 400 400 401 401 createBufferResources(); 402 /*** END OF REFACTORED CODE ***/403 402 404 403 createSyncObjects(); … … 475 474 } 476 475 477 /*** START OF REFACTORED CODE ***/478 476 vector<const char*> getRequiredExtensions() { 479 477 vector<const char*> extensions = gui->getRequiredExtensions(); … … 1696 1694 /*** START OF REFACTORED CODE ***/ 1697 1695 } 1698 /*** END OF REFACTORED CODE ***/1699 1696 1700 1697 void createSyncObjects() { … … 1718 1715 } 1719 1716 } 1717 /*** END OF REFACTORED CODE ***/ 1720 1718 1721 1719 bool addObjectToScene(GraphicsPipelineInfo& info, … … 1970 1968 cleanupPipelineBuffers(scenePipeline); 1971 1969 cleanupPipelineBuffers(overlayPipeline); 1972 /*** END OF REFACTORED CODE ***/1973 1970 1974 1971 for (size_t i = 0; i < MAX_FRAMES_IN_FLIGHT; i++) { … … 1978 1975 } 1979 1976 1980 /*** START OF REFACTORED CODE ***/1981 1977 vkDestroyCommandPool(device, commandPool, nullptr); 1982 1978 vkDestroyDevice(device, nullptr);
Note:
See TracChangeset
for help on using the changeset viewer.