![]() |
HoviTron Video Pipeline
|
Class that encapsulate an OpenXR Swapchain and functions associated to it. More...
#include <SwapchainOpenXR.h>
Public Member Functions | |
SwapchainOpenXR (int64_t format, const XrViewConfigurationView &vp, WindowAbstract *window, VulkanWrapper *wrapper, XrSession *session) | |
std::tuple< uint32_t, std::optional< vk::Semaphore > > | acquireImage () override |
void | presentImage (uint32_t imageIndex, vk::Semaphore &renderingFinnished) override |
void | presentImage (uint32_t imageIndex, vk::Fence &renderingFinnishedFence) override |
vk::ImageView | getSwapchainImageView (int elem) override |
vk::Image | getSwapchainImage (int index) override |
void | cleanup () override |
int | getAttachmentSize () override |
vk::Image | getCurrentImage () override |
virtual std::tuple< uint32_t, std::optional< vk::Semaphore > > | acquireImage ()=0 |
virtual void | presentImage (uint32_t imageIndex, vk::Semaphore &renderingFinnished)=0 |
virtual void | presentImage (uint32_t imageIndex, vk::Fence &renderingFinnishedFence)=0 |
virtual void | cleanup ()=0 |
virtual vk::ImageView | getSwapchainImageView (int elem)=0 |
virtual int | getAttachmentSize ()=0 |
virtual vk::Image | getSwapchainImage (int index)=0 |
virtual vk::Image | getCurrentImage ()=0 |
Additional Inherited Members | |
![]() | |
std::variant< vk::SwapchainKHR > | handle |
vk::Extent2D | swapchainExtent |
vk::Format | swapchainFormat |
![]() | |
std::vector< vk::ImageView > | swapchainImageViews |
VulkanWrapper * | wraps = nullptr |
WindowAbstract * | window = nullptr |
Class that encapsulate an OpenXR Swapchain and functions associated to it.
Class that encapsulate an OpenXR swapchain and functions associated to it.
Can be used for color or depth swapchain
Definition at line 35 of file SwapchainOpenXR.h.
SwapchainOpenXR::SwapchainOpenXR | ( | int64_t | format, |
const XrViewConfigurationView & | vp, | ||
WindowAbstract * | window, | ||
VulkanWrapper * | wrapper, | ||
XrSession * | session | ||
) |
Constructor
Definition at line 39 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Acquire the next image that will be the rendering target and optionnaly the semaphore signalling when the image is available
Implements SwapchainAbstract.
Definition at line 57 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Clean up allocated ressources
Implements SwapchainAbstract.
Definition at line 116 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Return the size of the attachment
Implements SwapchainAbstract.
Definition at line 121 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Return the current vk::Image in use
Implements SwapchainAbstract.
Definition at line 127 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Return vk::Image corresponding to the requested index
Implements SwapchainAbstract.
Definition at line 103 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Used to retrieve the vk::ImageView corresponding to the image used
Implements SwapchainAbstract.
Definition at line 97 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Called to signal that rendering work have been submitted to the GPU, and that the Fence have to be used for synchronization
Implements SwapchainAbstract.
Definition at line 78 of file SwapchainOpenXR.cpp.
|
overridevirtual |
Called to signal that rendering work have been submitted to the GPU, and that the Semaphore have to be used for synchronization
Implements SwapchainAbstract.
Definition at line 73 of file SwapchainOpenXR.cpp.