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


Ignore:
Timestamp:
Sep 23, 2019, 12:32:48 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
502bd0b
Parents:
a0c5f28
Message:

In vulkangame, add code to create a logical device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    ra0c5f28 rc1c2021  
    2828      VkSurfaceKHR surface; // TODO: Change the variable name to vulkanSurface
    2929      VkPhysicalDevice physicalDevice = VK_NULL_HANDLE;
     30      VkDevice device;
     31
     32      VkQueue graphicsQueue;
     33      VkQueue presentQueue;
    3034
    3135      bool initWindow(int width, int height, unsigned char guiFlags);
     
    4246      void pickPhysicalDevice(const vector<const char*>& deviceExtensions);
    4347      bool isDeviceSuitable(VkPhysicalDevice device, const vector<const char*>& deviceExtensions);
     48      void createLogicalDevice(
     49         const vector<const char*> validationLayers,
     50         const vector<const char*>& deviceExtensions);
     51      void cleanupSwapChain();
    4452
    4553      static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(
Note: See TracChangeset for help on using the changeset viewer.