42 virtual std::tuple<uint32_t, std::optional<vk::Semaphore> >
acquireImage() = 0;
44 virtual void presentImage(uint32_t imageIndex, vk::Semaphore & renderingFinnished) = 0;
46 virtual void presentImage(uint32_t imageIndex, vk::Fence & renderingFinnishedFence) = 0;
63 std::variant<XrSwapchain, vk::SwapchainKHR>
handle;
66 std::variant<vk::SwapchainKHR>
handle;
Encapsulate the notion of Swapchain.
std::vector< vk::ImageView > swapchainImageViews
vk::Extent2D swapchainExtent
virtual vk::ImageView getSwapchainImageView(int elem)=0
virtual vk::Image getSwapchainImage(int index)=0
std::variant< vk::SwapchainKHR > handle
virtual std::tuple< uint32_t, std::optional< vk::Semaphore > > acquireImage()=0
vk::Format swapchainFormat
virtual void presentImage(uint32_t imageIndex, vk::Fence &renderingFinnishedFence)=0
virtual vk::Image getCurrentImage()=0
virtual void presentImage(uint32_t imageIndex, vk::Semaphore &renderingFinnished)=0
virtual int getAttachmentSize()=0
Class that manages the classes related to Vulkan code and act as a wrapper around them.
Abstraction of the way of the result is displayed (screen or HMD).
file that contains the common include for the Vulkan part