![]() |
HoviTron Video Pipeline
|
Class that encapsulate a vkSwapchainHHR object and the methods linked to it. More...
#include <SwapchainCommon.h>
Public Member Functions | |
SwapchainCommon (VkSurfaceKHR &surface, WindowAbstract *window, VulkanWrapper *wrapper) | |
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 a vkSwapchainHHR object and the methods linked to it.
Class that encapsulates an OpenXR swapchain and functions associated to it.
Definition at line 36 of file SwapchainCommon.h.
SwapchainCommon::SwapchainCommon | ( | VkSurfaceKHR & | surface, |
WindowAbstract * | window, | ||
VulkanWrapper * | wrapper | ||
) |
Constructor
Definition at line 23 of file SwapchainCommon.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 97 of file SwapchainCommon.cpp.
|
overridevirtual |
cleanUp ressources
Implements SwapchainAbstract.
Definition at line 215 of file SwapchainCommon.cpp.
|
overridevirtual |
Return the size of the attachment
Implements SwapchainAbstract.
Definition at line 232 of file SwapchainCommon.cpp.
|
overridevirtual |
Return the current vk::Image in use
Implements SwapchainAbstract.
Definition at line 237 of file SwapchainCommon.cpp.
|
overridevirtual |
Return vk::Image corresponding to the requested index
Implements SwapchainAbstract.
Definition at line 209 of file SwapchainCommon.cpp.
|
overridevirtual |
Used to retrieve the vk::ImageView corresponding to the image used
Implements SwapchainAbstract.
Definition at line 203 of file SwapchainCommon.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 141 of file SwapchainCommon.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 110 of file SwapchainCommon.cpp.