Kale
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Kale::Vulkan::QueueFamilyIndices Class Reference

#include <QueueFamilyIndices.hpp>

Public Member Functions

 QueueFamilyIndices ()
 
 QueueFamilyIndices (const vk::PhysicalDevice &device)
 
bool hasAllIndices () const
 
std::unordered_set< uint32_t > getUniqueIndices () const
 

Public Attributes

std::optional< uint32_t > graphicsFamilyIndex
 
std::optional< uint32_t > presentFamilyIndex
 

Detailed Description

The indices for each queue family of a physical device which we need

Definition at line 30 of file QueueFamilyIndices.hpp.

Constructor & Destructor Documentation

◆ QueueFamilyIndices() [1/2]

QueueFamilyIndices::QueueFamilyIndices ( )

Creates an uninitialized object

Definition at line 29 of file QueueFamilyIndices.cpp.

◆ QueueFamilyIndices() [2/2]

QueueFamilyIndices::QueueFamilyIndices ( const vk::PhysicalDevice & device)

Gets all the required queue family indices

Parameters
deviceThe physical device to check for

Definition at line 37 of file QueueFamilyIndices.cpp.

Member Function Documentation

◆ getUniqueIndices()

std::unordered_set< uint32_t > QueueFamilyIndices::getUniqueIndices ( ) const

Gets an unordered set of all the unique indices

Returns
All the unique indices

Definition at line 64 of file QueueFamilyIndices.cpp.

◆ hasAllIndices()

bool QueueFamilyIndices::hasAllIndices ( ) const

Returns whether or not this physical device contains all required queue family indices

Returns
Whether or not this physical device contains all required queue family indices

Definition at line 56 of file QueueFamilyIndices.cpp.

Member Data Documentation

◆ graphicsFamilyIndex

std::optional<uint32_t> Kale::Vulkan::QueueFamilyIndices::graphicsFamilyIndex

The graphics queue family index of the device if it exists

Definition at line 36 of file QueueFamilyIndices.hpp.

◆ presentFamilyIndex

std::optional<uint32_t> Kale::Vulkan::QueueFamilyIndices::presentFamilyIndex

The presentation family queue index

Definition at line 41 of file QueueFamilyIndices.hpp.


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