|
libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
|
Tracks Vulkan queue family assignments needed to create a device. More...
#include <vk.hpp>
Public Member Functions | |
| bool | isComplete () |
| Check whether both required families have been found. | |
Public Attributes | |
| std::optional< uint32_t > | graphicsFamily |
| Index of the graphics queue family. | |
| std::optional< uint32_t > | presentFamily |
| Index of the presentation queue family. | |
Tracks Vulkan queue family assignments needed to create a device.
|
inline |
Check whether both required families have been found.
true if graphics and present families are both assigned. Definition at line 80 of file vk.hpp.
References graphicsFamily, and presentFamily.
Referenced by mx::VKWindow::findQueueFamilies(), and mx::VKWindow::isDeviceSuitable().
| std::optional<uint32_t> mx::QueueFamilyIndices::graphicsFamily |
Index of the graphics queue family.
Definition at line 73 of file vk.hpp.
Referenced by mx::VKWindow::createCommandPool(), mx::VKWindow::createLogicalDevice(), mx::VKWindow::createSwapChain(), mx::VKWindow::findQueueFamilies(), and isComplete().
| std::optional<uint32_t> mx::QueueFamilyIndices::presentFamily |
Index of the presentation queue family.
Definition at line 74 of file vk.hpp.
Referenced by mx::VKWindow::createLogicalDevice(), mx::VKWindow::createSwapChain(), mx::VKWindow::findQueueFamilies(), and isComplete().