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>
8
9namespace wren::vulkan {
10
13 uint32_t present_index;
14};
15
16class Queue {
17 public:
18 static auto find_queue_family_indices(
19 const ::vk::PhysicalDevice &physical_device,
20 const std::optional<::vk::SurfaceKHR> &surface = {})
22};
23
24} // namespace wren::vulkan
Definition queue.hpp:16
static auto find_queue_family_indices(const ::vk::PhysicalDevice &physical_device, const std::optional<::vk::SurfaceKHR > &surface={}) -> expected< QueueFamilyIndices >
Definition queue.cpp:12
Definition device.cpp:12
std::expected< T, Err > expected
Definition result.hpp:49
Definition queue.hpp:11
uint32_t graphics_index
Definition queue.hpp:12
uint32_t present_index
Definition queue.hpp:13