-
Notifications
You must be signed in to change notification settings - Fork 0
/
frame.hpp
39 lines (37 loc) · 1.17 KB
/
frame.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @file frame.hpp
* @brief Defines the SwapChainFrame structure for managing Vulkan swap chain frames.
* @date Created by Renato on 27-12-23.
*/
#ifndef INC_3DLOADERVK_FRAME_HPP
#define INC_3DLOADERVK_FRAME_HPP
#include <vulkan/vulkan.hpp>
/**
* @namespace vkutil
* @brief Contains utility structures and functions for Vulkan.
*
* This namespace provides additional support for managing Vulkan objects and operations,
* supplementing the core Vulkan functionalities.
*/
namespace vkutil
{
/**
* @struct SwapChainFrame
* @brief Holds the components necessary for a single frame in a Vulkan swap chain.
*
* This structure includes an image, an image view, a framebuffer, command buffer,
* and synchronization objects for a frame. These components are essential for rendering
* and presenting each frame in a Vulkan application.
*/
struct SwapChainFrame
{
vk::Image image;
vk::ImageView imageView;
vk::Framebuffer framebuffer;
vk::CommandBuffer commandbuffer;
vk::Semaphore imageAvailable;
vk::Semaphore renderFinished;
vk::Fence inFlight;
};
}
#endif //INC_3DLOADERVK_FRAME_HPP