Changeset 34bdf3a in opengl-game for vulkan-ref.cpp


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-ref.cpp

    r603b5bc r34bdf3a  
    2727using namespace glm;
    2828
     29/*** START OF REFACTORED CODE ***/
    2930const int SCREEN_WIDTH = 800;
    3031const int SCREEN_HEIGHT = 600;
     
    3233const int MAX_FRAMES_IN_FLIGHT = 2;
    3334
    34 /*** START OF REFACTORED CODE ***/
    3535#ifdef NDEBUG
    3636   const bool enableValidationLayers = false;
     
    219219      GraphicsPipelineInfo scenePipeline;
    220220      GraphicsPipelineInfo overlayPipeline;
    221 /*** END OF REFACTORED CODE ***/
    222221
    223222      vector<VkSemaphore> imageAvailableSemaphores;
    224223      vector<VkSemaphore> renderFinishedSemaphores;
    225224      vector<VkFence> inFlightFences;
     225/*** END OF REFACTORED CODE ***/
    226226
    227227      size_t currentFrame = 0;
     
    400400
    401401         createBufferResources();
    402 /*** END OF REFACTORED CODE ***/
    403402
    404403         createSyncObjects();
     
    475474      }
    476475
    477 /*** START OF REFACTORED CODE ***/
    478476      vector<const char*> getRequiredExtensions() {
    479477         vector<const char*> extensions = gui->getRequiredExtensions();
     
    16961694/*** START OF REFACTORED CODE ***/
    16971695      }
    1698 /*** END OF REFACTORED CODE ***/
    16991696
    17001697      void createSyncObjects() {
     
    17181715         }
    17191716      }
     1717/*** END OF REFACTORED CODE ***/
    17201718
    17211719      bool addObjectToScene(GraphicsPipelineInfo& info,
     
    19701968         cleanupPipelineBuffers(scenePipeline);
    19711969         cleanupPipelineBuffers(overlayPipeline);
    1972  /*** END OF REFACTORED CODE ***/
    19731970
    19741971         for (size_t i = 0; i < MAX_FRAMES_IN_FLIGHT; i++) {
     
    19781975         }
    19791976
    1980 /*** START OF REFACTORED CODE ***/
    19811977         vkDestroyCommandPool(device, commandPool, nullptr);
    19821978         vkDestroyDevice(device, nullptr);
Note: See TracChangeset for help on using the changeset viewer.