Changeset 34bdf3a in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Oct 24, 2019, 3:35:49 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
87c8f1a
Parents:
603b5bc
Message:

In vulkangame, create Vulkan synchronization objects for rendering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r603b5bc r34bdf3a  
    3030class VulkanGame {
    3131   public:
    32       VulkanGame();
     32      VulkanGame(int maxFramesInFlight);
    3333      ~VulkanGame();
    3434
     
    3636
    3737   private:
     38      const int MAX_FRAMES_IN_FLIGHT;
     39
    3840      GameGui* gui;
    3941
     
    8587      VkDescriptorImageInfo sdlOverlayImageDescriptor;
    8688
     89      vector<VkSemaphore> imageAvailableSemaphores;
     90      vector<VkSemaphore> renderFinishedSemaphores;
     91      vector<VkFence> inFlightFences;
     92
    8793      bool framebufferResized = false;
    8894
     
    114120      void createUniformBuffers();
    115121      void createCommandBuffers();
     122      void createSyncObjects();
    116123
    117124      void cleanupSwapChain();
Note: See TracChangeset for help on using the changeset viewer.