3#include <vulkan/vulkan.hpp>
4#include <vulkan/vulkan_handles.hpp>
11 static auto create(::vk::Instance
const &instance,
12 ::vk::PhysicalDevice
const &physical_device,
13 ::vk::SurfaceKHR
const &surface)
16 [[nodiscard]]
auto get() const -> ::
vk::
Device {
return device_; }
19 return graphics_queue_;
23 return present_queue_;
29 auto create_device(::vk::Instance
const &instance,
30 ::vk::PhysicalDevice
const &physical_device,
31 ::vk::SurfaceKHR
const &surface)
34 ::vk::CommandPool command_pool_;
36 ::vk::Queue graphics_queue_;
37 ::vk::Queue present_queue_;
auto get_graphics_queue() const
Definition device.hpp:18
auto get() const -> ::vk::Device
Definition device.hpp:16
auto get_present_queue() const
Definition device.hpp:22
static auto create(::vk::Instance const &instance, ::vk::PhysicalDevice const &physical_device, ::vk::SurfaceKHR const &surface) -> expected< Device >
Definition device.cpp:15
auto command_pool() const
Definition device.hpp:26
tl::expected< T, Err > expected
Definition errors.hpp:49