Changeset c324d6a in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Jan 2, 2021, 4:07:45 PM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl, master
Children:
3b7d497, ca188cc
Parents:
a2f62d7
Message:

Make some minor updates to VulkanGame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    ra2f62d7 rc324d6a  
    1515#include <vulkan/vulkan.h>
    1616
     17#include <SDL2/SDL.h>
    1718#include <SDL2/SDL_ttf.h>
    1819
     
    227228
    228229   private:
     230      static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(
     231         VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
     232         VkDebugUtilsMessageTypeFlagsEXT messageType,
     233         const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
     234         void* pUserData);
     235
    229236      // TODO: Make these consts static
    230237      // Also, maybe move them into consts.hpp
     
    261268      VkQueue presentQueue;
    262269
     270      uint32_t swapChainImageCount;
    263271      VkSwapchainKHR swapChain;
    264272      vector<VkImage> swapChainImages;
     
    374382      void cleanup();
    375383
    376       void createVulkanInstance(const vector<const char*> &validationLayers);
     384      void createVulkanInstance(const vector<const char*>& validationLayers);
    377385      void setupDebugMessenger();
    378386      void populateDebugMessengerCreateInfo(VkDebugUtilsMessengerCreateInfoEXT& createInfo);
     
    380388      void pickPhysicalDevice(const vector<const char*>& deviceExtensions);
    381389      bool isDeviceSuitable(VkPhysicalDevice physicalDevice, const vector<const char*>& deviceExtensions);
    382       void createLogicalDevice(
    383          const vector<const char*> validationLayers,
     390      void createLogicalDevice(const vector<const char*>& validationLayers,
    384391         const vector<const char*>& deviceExtensions);
    385392      void createSwapChain();
     
    436443
    437444      void cleanupSwapChain();
    438 
    439       static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(
    440             VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
    441             VkDebugUtilsMessageTypeFlagsEXT messageType,
    442             const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
    443             void* pUserData);
    444445};
    445446
Note: See TracChangeset for help on using the changeset viewer.