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
Level 2

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
Oculus Staff

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

View solution in original post

2 REPLIES 2

johnkearney
Oculus Staff

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

View solution in original post

dmikis
Level 2

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