Chronos 0.0
A advanced 2D rendering and animation system
Loading...
Searching...
No Matches
Chronos::Engine::QueueFamilyIndices Struct Reference

This is used to check if a given familty supports graphics and presentation. More...

#include <helper.hpp>

Public Member Functions

bool isComplete ()
 

Public Attributes

std::optional< uint32_t > graphicsFamily
 
std::optional< uint32_t > presentFamily
 

Detailed Description

This is used to check if a given familty supports graphics and presentation.

The check can be done using the isComplete() function.

Parameters
graphicsFamilyThe graphics family to check.
presentFamilyThe presentation family to check.

Definition at line 44 of file helper.hpp.

Member Function Documentation

◆ isComplete()

bool Chronos::Engine::QueueFamilyIndices::isComplete ( )
inline

Definition at line 47 of file helper.hpp.

48 {
49 return graphicsFamily.has_value() && presentFamily.has_value();
50 }
std::optional< uint32_t > presentFamily
Definition helper.hpp:46
std::optional< uint32_t > graphicsFamily
Definition helper.hpp:45

References graphicsFamily, and presentFamily.

Here is the caller graph for this function:

Member Data Documentation

◆ graphicsFamily

std::optional<uint32_t> Chronos::Engine::QueueFamilyIndices::graphicsFamily

Definition at line 45 of file helper.hpp.

◆ presentFamily

std::optional<uint32_t> Chronos::Engine::QueueFamilyIndices::presentFamily

Definition at line 46 of file helper.hpp.


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