evan 2026.1.4
Evan
Loading...
Searching...
No Matches
QueueFamilyIndices.hpp
1/*
2** ETIB PROJECT, 2026
3** evan
4** File description:
5** QueueFamilyIndices
6*/
7
8#pragma once
9
10#include <cstdint>
11#include <optional>
12
13namespace evan
14{
27 std::optional<uint32_t> graphicsFamily;
28
33 std::optional<uint32_t> presentFamily;
34
45 bool isComplete() const
46 {
47 return graphicsFamily.has_value() && presentFamily.has_value();
48 }
49 };
50} // namespace evan
A structure to represent Vulkan queue family indices.
std::optional< uint32_t > presentFamily
An optional value representing the index of the queue family that supports presentation operations.
bool isComplete() const
isComplete
std::optional< uint32_t > graphicsFamily
An optional value representing the index of the queue family that supports graphics operations.