wren
Vulkan-based game engine
Loading...
Searching...
No Matches
queue.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <optional>
5
#include <vulkan/vulkan.hpp>
6
#include <vulkan/vulkan_handles.hpp>
7
#include <
wren/utils/result.hpp
>
8
9
namespace
wren::vulkan
{
10
11
struct
QueueFamilyIndices
{
12
uint32_t
graphics_index
;
13
uint32_t
present_index
;
14
};
15
16
class
Queue
{
17
public
:
18
static
auto
find_queue_family_indices
(
19
const ::vk::PhysicalDevice &physical_device,
20
const
std::optional<::vk::SurfaceKHR> &surface = {})
21
->
expected<QueueFamilyIndices>
;
22
};
23
24
}
// namespace wren::vulkan
wren::vulkan::Queue
Definition
queue.hpp:16
wren::vulkan::Queue::find_queue_family_indices
static auto find_queue_family_indices(const ::vk::PhysicalDevice &physical_device, const std::optional<::vk::SurfaceKHR > &surface={}) -> expected< QueueFamilyIndices >
Definition
queue.cpp:12
wren::vulkan
Definition
device.cpp:12
wren::expected
std::expected< T, Err > expected
Definition
result.hpp:49
wren::vulkan::QueueFamilyIndices
Definition
queue.hpp:11
wren::vulkan::QueueFamilyIndices::graphics_index
uint32_t graphics_index
Definition
queue.hpp:12
wren::vulkan::QueueFamilyIndices::present_index
uint32_t present_index
Definition
queue.hpp:13
result.hpp
wren
include
wren
utils
queue.hpp
Generated by
1.10.0