Changeset c324d6a in opengl-game for vulkan-game.hpp
- Timestamp:
- Jan 2, 2021, 4:07:45 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 3b7d497, ca188cc
- Parents:
- a2f62d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
ra2f62d7 rc324d6a 15 15 #include <vulkan/vulkan.h> 16 16 17 #include <SDL2/SDL.h> 17 18 #include <SDL2/SDL_ttf.h> 18 19 … … 227 228 228 229 private: 230 static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback( 231 VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, 232 VkDebugUtilsMessageTypeFlagsEXT messageType, 233 const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData, 234 void* pUserData); 235 229 236 // TODO: Make these consts static 230 237 // Also, maybe move them into consts.hpp … … 261 268 VkQueue presentQueue; 262 269 270 uint32_t swapChainImageCount; 263 271 VkSwapchainKHR swapChain; 264 272 vector<VkImage> swapChainImages; … … 374 382 void cleanup(); 375 383 376 void createVulkanInstance(const vector<const char*> &validationLayers);384 void createVulkanInstance(const vector<const char*>& validationLayers); 377 385 void setupDebugMessenger(); 378 386 void populateDebugMessengerCreateInfo(VkDebugUtilsMessengerCreateInfoEXT& createInfo); … … 380 388 void pickPhysicalDevice(const vector<const char*>& deviceExtensions); 381 389 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, 384 391 const vector<const char*>& deviceExtensions); 385 392 void createSwapChain(); … … 436 443 437 444 void cleanupSwapChain(); 438 439 static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(440 VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,441 VkDebugUtilsMessageTypeFlagsEXT messageType,442 const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,443 void* pUserData);444 445 }; 445 446
Note:
See TracChangeset
for help on using the changeset viewer.