Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
dmikis's avatar
dmikis
Explorer
4 years ago
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.

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

3 Replies

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

    • johnkearney's avatar
      johnkearney
      Meta Employee

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