2#include <vulkan/vulkan.h>
3#include <drivers/vulkan-cpp/vk_physical_driver.hpp>
21 struct device_queue_family {
22 VkQueue graphics_queue;
23 VkQueue transfer_queue;
24 VkQueue compute_queue;
42 return m_device_queues.graphics_queue;
49 VkMemoryPropertyFlags p_property_flag);
66 operator VkDevice()
const {
return m_driver; }
74 operator VkDevice() {
return m_driver; }
78 VkDevice m_driver =
nullptr;
79 device_queue_family m_device_queues{};
80 VkFormat m_depth_format_selected;
logical device implementation wrapper around the VkDevice
Definition vk_driver.hpp:20
uint32_t select_memory_type(uint32_t p_type_filter, VkMemoryPropertyFlags p_property_flag)
VkQueue graphics_queue() const
returns the specified graphics queue from this logical device
Definition vk_driver.hpp:41
vk_driver(const vk_physical_driver &p_physical)
construct a new logical device
VkFormat depth_format() const
gives you the depth format from the logical device
vulkan-specific implementation wrapper around VkPhysicalDevice
Definition vk_physical_driver.hpp:23