Changeset 737c26a in opengl-game


Ignore:
Timestamp:
Feb 14, 2021, 3:32:01 AM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
1cb64e6
Parents:
28ea92f
Message:

Perform minor reformatting in SDLGame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.cpp

    r28ea92f r737c26a  
    3131
    3232VKAPI_ATTR VkBool32 VKAPI_CALL VulkanGame::debugCallback(
    33    VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
    34    VkDebugUtilsMessageTypeFlagsEXT messageType,
    35    const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
    36    void* pUserData) {
     33      VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
     34      VkDebugUtilsMessageTypeFlagsEXT messageType,
     35      const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
     36      void* pUserData) {
    3737   cerr << "validation layer: " << pCallbackData->pMessage << endl;
    3838
     39   // TODO: Figure out what the return value means and if it should always be VK_FALSE
    3940   return VK_FALSE;
    4041}
     
    4445   // Also, decide whether to use this-> for all instance variables, or only when necessary
    4546
    46    this->debugMessenger = VK_NULL_HANDLE;
    47 
    48    this->gui = nullptr;
    49    this->window = nullptr;
    50 
    51    this->swapChainPresentMode = VK_PRESENT_MODE_MAX_ENUM_KHR;
    52    this->swapChainMinImageCount = 0;
     47   debugMessenger = VK_NULL_HANDLE;
     48
     49   gui = nullptr;
     50   window = nullptr;
     51
     52   swapChainPresentMode = VK_PRESENT_MODE_MAX_ENUM_KHR;
     53   swapChainMinImageCount = 0;
     54
     55   shouldRecreateSwapChain = false;
    5356}
    5457
     
    307310   createImageViews();
    308311   createRenderPass();
     312
    309313   createResourceCommandPool();
    310 
    311314   createCommandPools();
    312315
Note: See TracChangeset for help on using the changeset viewer.