wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::vulkan::Device Class Reference

#include <device.hpp>

Public Member Functions

auto get () const -> ::vk::Device
 
auto get_graphics_queue () const
 
auto get_present_queue () const
 
auto command_pool () const
 

Static Public Member Functions

static auto create (const ::vk::Instance &instance, const ::vk::PhysicalDevice &physical_device, const ::vk::SurfaceKHR &surface) -> expected< Device >
 

Private Member Functions

auto create_device (const ::vk::Instance &instance, const ::vk::PhysicalDevice &physical_device, const ::vk::SurfaceKHR &surface) -> expected< void >
 

Private Attributes

::vk::CommandPool command_pool_
 
::vk::Device device_
 
::vk::Queue graphics_queue_
 
::vk::Queue present_queue_
 

Member Function Documentation

◆ command_pool()

auto wren::vulkan::Device::command_pool ( ) const
inline
Here is the caller graph for this function:

◆ create()

auto wren::vulkan::Device::create ( const ::vk::Instance & instance,
const ::vk::PhysicalDevice & physical_device,
const ::vk::SurfaceKHR & surface ) -> expected<Device>
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_device()

auto wren::vulkan::Device::create_device ( const ::vk::Instance & instance,
const ::vk::PhysicalDevice & physical_device,
const ::vk::SurfaceKHR & surface ) -> expected<void>
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

auto wren::vulkan::Device::get ( ) const -> ::vk::Device
inline
Here is the caller graph for this function:

◆ get_graphics_queue()

auto wren::vulkan::Device::get_graphics_queue ( ) const
inline
Here is the caller graph for this function:

◆ get_present_queue()

auto wren::vulkan::Device::get_present_queue ( ) const
inline

Member Data Documentation

◆ command_pool_

::vk::CommandPool wren::vulkan::Device::command_pool_
private

◆ device_

::vk::Device wren::vulkan::Device::device_
private

◆ graphics_queue_

::vk::Queue wren::vulkan::Device::graphics_queue_
private

◆ present_queue_

::vk::Queue wren::vulkan::Device::present_queue_
private

The documentation for this class was generated from the following files: