Changeset 502bd0b in opengl-game for vulkan-ref.cpp


Ignore:
Timestamp:
Sep 23, 2019, 2:02:47 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
91c89f7
Parents:
c1c2021
Message:

In vulkangame, add code to create a swap chain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-ref.cpp

    rc1c2021 r502bd0b  
    168168      VkQueue graphicsQueue;
    169169      VkQueue presentQueue;
    170 /*** END OF REFACTORED CODE ***/
    171170
    172171      VkSwapchainKHR swapChain;
     
    174173      VkFormat swapChainImageFormat;
    175174      VkExtent2D swapChainExtent;
     175/*** END OF REFACTORED CODE ***/
    176176      vector<VkImageView> swapChainImageViews;
    177177      vector<VkFramebuffer> swapChainFramebuffers;
     
    608608         vkGetDeviceQueue(device, indices.presentFamily.value(), 0, &presentQueue);
    609609      }
    610 /*** END OF REFACTORED CODE ***/
    611610
    612611      void createSwapChain() {
     
    663662      }
    664663
    665 /*** START OF REFACTORED CODE ***/
    666664      SwapChainSupportDetails querySwapChainSupport(VkPhysicalDevice device) {
    667665         SwapChainSupportDetails details;
     
    19481946         }
    19491947
     1948/*** START OF REFACTORED CODE ***/
    19501949         vkDestroySwapchainKHR(device, swapChain, nullptr);
     1950/*** END OF REFACTORED CODE ***/
    19511951
    19521952         for (size_t i = 0; i < swapChainImages.size(); i++) {
Note: See TracChangeset for help on using the changeset viewer.