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


Ignore:
Timestamp:
Sep 22, 2019, 2:28:22 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
a0c5f28
Parents:
90a424f
Message:

In vulkangame, change the pickPhysicalDevice() and isDeviceSuitable() functions to take the deviceExtensions list as a parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r90a424f rfe5c3ba  
    2626      VkInstance instance;
    2727      VkDebugUtilsMessengerEXT debugMessenger;
    28       VkSurfaceKHR surface;
     28      VkSurfaceKHR surface; // TODO: Change the variable name to vulkanSurface
    2929      VkPhysicalDevice physicalDevice = VK_NULL_HANDLE;
    3030
     
    3838      void populateDebugMessengerCreateInfo(VkDebugUtilsMessengerCreateInfoEXT& createInfo);
    3939      void createVulkanSurface();
    40       void pickPhysicalDevice();
    41       bool isDeviceSuitable(VkPhysicalDevice device);
     40      void pickPhysicalDevice(const vector<const char*>& deviceExtensions);
     41      bool isDeviceSuitable(VkPhysicalDevice device, const vector<const char*>& deviceExtensions);
    4242
    4343      static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(
Note: See TracChangeset for help on using the changeset viewer.