40 std::tuple<uint32_t, std::optional<vk::Semaphore> >
acquireImage()
override;
42 void presentImage(uint32_t imageIndex, vk::Semaphore & renderingFinnished)
override;
44 void presentImage(uint32_t imageIndex, vk::Fence & renderingFinnishedFence)
override;
61 uint32_t currentImage = 0;
63 std::vector<XrSwapchainImageBaseHeader*> xrSwapchainImagesBase;
65 std::vector<XrSwapchainImageVulkanKHR> swapChainImagesXr;
68 void createSwapchain(
const XrViewConfigurationView& vp, XrSession* session , int64_t format);
70 void createSwapchainImageViews();
71 std::vector<XrSwapchainImageBaseHeader*> initPresentation(uint32_t count, XrSwapchainCreateInfo swapchainInfo);
74 Swapchain xrswapchain;
Contains the class that encapsulate the notion of Swapchain: SwapchainAbstract.
Encapsulate the notion of Swapchain.
Class that encapsulate an OpenXR Swapchain and functions associated to it.
int getAttachmentSize() override
vk::ImageView getSwapchainImageView(int elem) override
std::tuple< uint32_t, std::optional< vk::Semaphore > > acquireImage() override
vk::Image getSwapchainImage(int index) override
vk::Image getCurrentImage() override
void presentImage(uint32_t imageIndex, vk::Semaphore &renderingFinnished) override
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
Some useful functions from the openXR sample (hello_xr)