Skip to main content
New Participant
September 22, 2021
Solved

Oculus PC Runtime doesn't seem to respect XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT

When I'm creating `xrSwapchain` with usage `XR_SWAPCHAIN_USAGE_COLOR_ATTACHMENT_BIT
| XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT`, but when I try to create views for swapchain images with different (yet compatible) format, Vulkan validation layers give an error `VUID-VkImageViewCreateInfo-image-01019`, `Formats MUST be IDENTICAL unless VK_IMAGE_CREATE_MUTABLE_FORMAT BIT was set on image creation.`. It seems Oculus OpenXR Runtime doesn't take into account MUTABLE_FORMAT_BIT when creating swapchain images.

    Meta Employee
    September 28, 2021

    Thanks dmikis - this looks like an unintended omission. I'll look at getting this implemented in an upcoming release.

    3 replies

    Meta Employee
    September 28, 2021

    Thanks dmikis - this looks like an unintended omission. I'll look at getting this implemented in an upcoming release.

    dmikisAuthor
    New Participant
    September 29, 2021

    johnkearneyAlso, I think similar problem is present on Android runtime as well.

    Meta Employee
    March 29, 2022

    Thanks dmikis - we will get this implemented in an upcoming Android runtime release too - (at this point it will likely be v41)