Changeset 90a424f in opengl-game for vulkan-ref.cpp
- Timestamp:
- Sep 16, 2019, 7:04:53 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- fe5c3ba
- Parents:
- c6fec84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-ref.cpp
rc6fec84 r90a424f 32 32 const int MAX_FRAMES_IN_FLIGHT = 2; 33 33 34 /*** START OF REFACTORED CODE ***/ 34 35 #ifdef NDEBUG 35 36 const bool enableValidationLayers = false; … … 60 61 vector<VkPresentModeKHR> presentModes; 61 62 }; 63 /*** END OF REFACTORED CODE ***/ 62 64 63 65 struct Vertex { … … 159 161 VkInstance instance; 160 162 VkDebugUtilsMessengerEXT debugMessenger; 163 VkSurfaceKHR surface; 164 165 VkPhysicalDevice physicalDevice = VK_NULL_HANDLE; 161 166 /*** END OF REFACTORED CODE ***/ 162 VkSurfaceKHR surface;163 164 VkPhysicalDevice physicalDevice = VK_NULL_HANDLE;165 167 VkDevice device; 166 168 … … 312 314 createInstance(); 313 315 setupDebugMessenger(); 314 /*** END OF REFACTORED CODE ***/315 316 createSurface(); 316 317 pickPhysicalDevice(); 318 /*** END OF REFACTORED CODE ***/ 317 319 createLogicalDevice(); 318 320 createSwapChain(); … … 491 493 createInfo.pfnUserCallback = debugCallback; 492 494 } 493 /*** END OF REFACTORED CODE ***/494 495 495 496 void createSurface() { … … 560 561 return requiredExtensions.empty(); 561 562 } 563 /*** END OF REFACTORED CODE ***/ 562 564 563 565 void createLogicalDevice() { … … 661 663 } 662 664 665 /*** START OF REFACTORED CODE ***/ 663 666 SwapChainSupportDetails querySwapChainSupport(VkPhysicalDevice device) { 664 667 SwapChainSupportDetails details; … … 684 687 return details; 685 688 } 689 /*** END OF REFACTORED CODE ***/ 686 690 687 691 VkSurfaceFormatKHR chooseSwapSurfaceFormat(const vector<VkSurfaceFormatKHR>& availableFormats) { … … 1034 1038 } 1035 1039 1040 /*** START OF REFACTORED CODE ***/ 1036 1041 QueueFamilyIndices findQueueFamilies(VkPhysicalDevice device) { 1037 1042 QueueFamilyIndices indices; … … 1065 1070 return indices; 1066 1071 } 1072 /*** END OF REFACTORED CODE ***/ 1067 1073 1068 1074 void createDepthResources() {
Note:
See TracChangeset
for help on using the changeset viewer.