Closed S-Dafarra closed 3 years ago
An issue (number 1587) has been filed to correspond to this issue in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#1587 ), to facilitate working group processes.
This GitHub issue will continue to be the main site of discussion.
It depends on the graphics API being used. For OpenGL/GLES the spec says:
The OpenXR runtime must interpret the bottom-left corner of the swapchain image as the coordinate origin unless specified otherwise by extension functionality.
For D3D/Vulkan the spec says:
The OpenXR runtime must interpret the top-left corner of the swapchain image as the coordinate origin unless specified otherwise by extension functionality.
Clear thanks, I did not notice those lines at first. Would it make sense to mention earlier on the spec that its definition depends on the graphics API?
Also, I wonder if this may cause a different behavior when using different runtimes. For example, I recently had a problem with the visualization of a XrCompositionLayerQuad
when using a swapchain size bigger than the image to display. I developed an app in Linux exploiting the monado
runtime, using the imageRect
to visualize only the portion of the swapchain image I was interested in. When testing the same app with the SteamVR
runtime on Windows, I was not able to visualize anything anymore. This got fixed when I started using the entire swapchain image (i.e. setting the offset to zero and setting the extent equal to the swapchain size). I suspect this was because the runtime was visualizing the wrong portion of the swapchain image., but I am just guessing.
Would it make sense to mention earlier on the spec that its definition depends on the graphics API?
Yes, agreed. I am making an update to the spec to clarify this on the imageRect
definition.
I'll bring your compatibility problem up with the appropriate people to see if they might know what is going.
Would it make sense to mention earlier on the spec that its definition depends on the graphics API?
Yes, agreed. I am making an update to the spec to clarify this on the
imageRect
definition.I'll bring your compatibility problem up with the appropriate people to see if they might know what is going.
Thanks a lot, I appreciate!
Fix released in OpenXR 1.0.19 - thanks for the report!
For example, in Section 10.4.5
and then
XrRect2Di
is defined in 2.17Although, it is not clear to me with respect to which point of the full swapchain image the offset is defined. Is it the top left corner, or the bottom left as for OpenGL textures?