Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::QueueFamilyIndices Class Reference

Holds the indices of Vulkan queue families used for graphics and presentation. More...

#include <QueueFamilyIndices.h>

Public Member Functions

bool IsComplete () const
 Checks whether both graphics and presentation queue families have been identified.

Public Attributes

std::optional< u32GraphicsFamily
 Index of the graphics queue family, if found.
std::optional< u32PresentFamily
 Index of the presentation queue family, if found.

Detailed Description

Holds the indices of Vulkan queue families used for graphics and presentation.

This struct uses std::optional to track whether suitable queue families have been found for graphics and presentation operations. It provides a simple check for completeness.

Member Function Documentation

◆ IsComplete()

bool Raven::QueueFamilyIndices::IsComplete ( ) const
inline

Checks whether both graphics and presentation queue families have been identified.

Returns
true if both GraphicsFamily and PresentFamily contain valid indices.
false otherwise.

Member Data Documentation

◆ GraphicsFamily

std::optional<u32> Raven::QueueFamilyIndices::GraphicsFamily

Index of the graphics queue family, if found.

◆ PresentFamily

std::optional<u32> Raven::QueueFamilyIndices::PresentFamily

Index of the presentation queue family, if found.


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