MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk_context.hpp
Go to the documentation of this file.
1/**
2 * @file mxvk_context.hpp
3 * @brief Minimal Vulkan handles shared across MXVK helpers.
4 */
5#pragma once
6
7#include <volk/volk.h>
8
9namespace mxvk {
10
11 /**
12 * @brief Minimal Vulkan handles required by MXVK resource helpers.
13 *
14 * Buffer and image allocation require @ref device and @ref physical_device.
15 * Upload helpers also require @ref graphics_queue and @ref command_pool.
16 */
18 /** @brief Logical device used to create and destroy resources. */
19 VkDevice device = VK_NULL_HANDLE;
20 /** @brief Physical device used for memory type queries. */
21 VkPhysicalDevice physical_device = VK_NULL_HANDLE;
22 /** @brief Queue used for one-shot upload command submission. */
23 VkQueue graphics_queue = VK_NULL_HANDLE;
24 /** @brief Command pool used for transient upload command buffers. */
25 VkCommandPool command_pool = VK_NULL_HANDLE;
26 };
27
28}
Utilities for loading and saving PNG images.
Definition mxvk.hpp:30
Minimal Vulkan handles required by MXVK resource helpers.
VkDevice device
Logical device used to create and destroy resources.
VkCommandPool command_pool
Command pool used for transient upload command buffers.
VkPhysicalDevice physical_device
Physical device used for memory type queries.
VkQueue graphics_queue
Queue used for one-shot upload command submission.