OpenXR XrSwapchainCreateInfo Incorrect Format
Current OpenXr implementation has DXGI_FORMAT_R8G8B8A8_UNORM format, but DXGI_FORMAT_R8G8B8A8_UNORM_SRGB should be used. OpenXR's swapchain format expects to describe the texture content. The result of a swapchain image created from OpenXR API always contains a typeless texture. On the other hand, WebGL API uses CSS color convention that's sRGB. The RGBA typelss texture from OpenXR swapchain image leads to a linear format render target view (reference to function D3D11TextureHelper::EnsureRenderTargetView in d3d11_texture_helper.cc). Therefore, the content in this openxr swapchain image is in sRGB format. Fixed: 1020392 Change-Id: Id1526e4b3061c81dfb48b5b9fd4bdced7831fd11 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894049 Commit-Queue: Zheng Qin <zheqi@microsoft.com> Reviewed-by:Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/master@{#723518}
Showing
Please register or sign in to comment