11-10-2021 12:09 PM
With deprecated Oculus API, it was possible to submit multisample textures.
Now, with OpenXR, xrEnumerateViewConfigurationViews() tells that maxSwapchainSampleCount is 1. It means it's impossible to create multisample swapchain images (XrSwapchainCreateInfo.sampleCount must be 1). Is that correct? So, the only option is to render to other multisample framebuffer, then do `blit` to swapchain image?
11-11-2021 10:30 PM
I'm using 2 samples without any problems in my app. 4 works too.
11-12-2021 07:09 AM
Using native OpenXR? After xrEnumerateViewConfigurationViews() call, what have you got in ((XrViewConfigurationView) view).maxSwapchainSampleCount?
(I got 4 on PC and 1 on native Quest 2)
11-12-2021 07:17 AM
I'm using native OpenXR via Rust wrapper. maxSwapchainSampleCount equals 1.
11-12-2021 08:00 AM
You are right, multisample swapchain is in fact supported (I messed up with glFramebufferTexture2DMultisampleEXT).
However, maxSwapchainSampleCount=1 means we must not set XrSwapchainCreateInfo.sampleCount to values higher than 1. But we can do it and it works. Looks like a bug in API implementation, system should return maxSwapchainSampleCount=4 instead of 1.
11-12-2021 08:05 AM
I totally agree. Vulkan validation layer doesn't complain that samples count greater than maxSwapchainSampleCount.
01-26-2023 10:36 AM
I can confirm that maxSwapchainSampleCount is still reporting 1! While I recognize that I could ignore this value, I'd prefer that it report an accurate value. Any chance we can we get the dev team to fix this?