cancel
Showing results for 
Search instead for 
Did you mean: 

Oculus PC Runtime doesn't seem to respect XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT

dmikis
Explorer

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.

1 ACCEPTED SOLUTION

Accepted Solutions

johnkearney
Meta Employee

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

View solution in original post

3 REPLIES 3

johnkearney
Meta Employee

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

dmikis
Explorer

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

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