25#include <vulkan/vulkan.hpp>
96 Device(
const vk::PhysicalDevice& device);
103 Device(uint32_t deviceId);
109 void init(
const vk::PhysicalDevice& device);
115 void init(uint32_t deviceId);
128 uint32_t
findMemoryType(uint32_t typeFilter, vk::MemoryPropertyFlags properties)
const;
vk::PhysicalDevice physicalDevice
void init(const vk::PhysicalDevice &device)
static bool deviceSupported(const vk::PhysicalDevice &physicalDevice)
std::map< QueueType, vk::Queue > queueMap
vk::UniqueDevice logicalDevice
void createLogicalDevice()
uint32_t findMemoryType(uint32_t typeFilter, vk::MemoryPropertyFlags properties) const
QueueFamilyIndices queueIndices
vk::PhysicalDeviceProperties physicalDeviceProperties
vk::PhysicalDeviceMemoryProperties memoryProperties
static std::vector< vk::PhysicalDevice > availableDevices()