In graphicsplugin_opengl.cpp : InitializeResources a local framebuffer is created into which is rendered in the function RenderView.
I miss the link with OpenXR?
In other words how does this framebuffer contents get to the display?
Kind Regards
In graphicsplugin_opengl.cpp : InitializeResources a local framebuffer is created into which is rendered in the function RenderView.
I miss the link with OpenXR?
In other words how does this framebuffer contents get to the display?
Kind Regards
The frame is submitted with xrEndFrame
. It’s then the responsibility of the runtime’s compositor to actually display that buffer on the display.
Does that help?
Hello Ryan,
Thanks for your response!
Does the xrEndFrame use OpenGL : glGetIntegerv(GL_FRAMEBUFFER_BINDING,…)
to determine the framebuffer from which to render?
Kind Regards
The swapchain image index that was most recently released (via xrReleaseSwapchainImage
) from the swapchain specified in xrEndFrame (XrSwapchainSubImage) is the one that is used.