evan 2026.1.4
Evan
Loading...
Searching...
No Matches
XrSwapchainImage.hpp
1/*
2** ETIB PROJECT, 2026
3** evan
4** File description:
5** XrSwapchainImage
6*/
7
8#pragma once
9
10#include "evan/ASwapchainImage.hpp"
11#include "evan/DeviceContext.hpp"
12
13#include <openxr/openxr.h>
14
15namespace evan
16{
39 {
40 public:
98
131
136 ~XrSwapchainImage() override;
137
159 void destroy(VkDevice device) override;
160
185 void fillPresentInfo(VkPresentInfoKHR &presentInfo) const override;
186
191
208
224
225 private:
233 void cleanup();
234
239 VkDevice _device = VK_NULL_HANDLE;
240
249 std::vector<XrSwapchainImageVulkan2KHR> _swapchainImages;
250
259 XrSwapchainImageBaseHeader *_swapchainImagesBase = nullptr;
260 };
261} // namespace evan
ASwapchainImage is a class that represents an image in the swapchain of the Evan engine....
Represents the device context for the engine, managing Vulkan-related resources and operations.
Represents a swapchain image for OpenXR rendering.
~XrSwapchainImage() override
Releases the swapchain image resources if they were not already destroyed through destroy().
void destroy(VkDevice device) override
Destroys the swapchain images and releases associated resources.
void fillPresentInfo(VkPresentInfoKHR &presentInfo) const override
Fills the VkPresentInfoKHR structure with the necessary information for presenting the swapchain imag...
Small result wrapper used by helpers that must return both a status and a value (e....
Definition Error.hpp:89
Encapsulates properties for creating an XrSwapchainImage instance.
const DeviceContext & deviceContext
A reference to the device context, which provides access to Vulkan device resources and operations ne...
XrSwapchain swapchain
The OpenXR swapchain handle associated with the swapchain images.
XrSwapchainCreateInfo createInfo
The swapchain creation info structure containing parameters for creating the swapchain images,...
VkRenderPass renderPass
The Vulkan render pass used for rendering operations with the swapchain images. It defines the render...
VkSampleCountFlagBits msaaSamples
The MSAA sample count to use for the color and depth resources created for this swapchain image.
ColorAttachmentMode colorAttachmentMode
How the render pass obtains its single-sampled color attachment.