Changeset 603b5bc in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Oct 22, 2019, 7:53:48 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
34bdf3a
Parents:
e83b155
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (10/22/19 19:10:44)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (10/22/19 19:53:48)
Message:

In vulkangame, add code to create the frame buffers and command buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    re83b155 r603b5bc  
    3737   private:
    3838      GameGui* gui;
    39       Viewport viewport;
    4039
    4140      vector<GraphicsPipeline_Vulkan> graphicsPipelines;
     
    5958      vector<VkImage> swapChainImages;
    6059      VkFormat swapChainImageFormat;
     60      VkExtent2D swapChainExtent;
    6161      vector<VkImageView> swapChainImageViews;
     62      vector<VkFramebuffer> swapChainFramebuffers;
    6263
    6364      VkRenderPass renderPass;
    6465      VkCommandPool commandPool;
     66      vector<VkCommandBuffer> commandBuffers;
    6567
    66       // TODO: Create these (and wrap them inside a VulkanImage)
    67       VkImage depthImage;
    68       VkDeviceMemory depthImageMemory;
    69       VkImageView depthImageView;
     68      VulkanImage depthImage;
    7069
    7170      VkSampler textureSampler;
     
    109108      VkFormat findDepthFormat();
    110109      void createCommandPool();
    111       void createVulkanResources();
     110      void createImageResources();
     111
    112112      void createTextureSampler();
     113      void createFramebuffers();
    113114      void createUniformBuffers();
     115      void createCommandBuffers();
    114116
    115117      void cleanupSwapChain();
Note: See TracChangeset for help on using the changeset viewer.