Skip to content

Commit

Permalink
Always set sampleCount to 1 for XR swapchain
Browse files Browse the repository at this point in the history
We are currently not set up to render to multisampled images in
BigWheels.
  • Loading branch information
apazylbe committed Jul 29, 2024
1 parent 5ea74e5 commit e1f8eb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ppx/grfx/vk/vk_swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ Result Swapchain::CreateApiObjects(const grfx::SwapchainCreateInfo* pCreateInfo)
info.format = ToVkFormat(pCreateInfo->depthFormat);
info.width = pCreateInfo->width;
info.height = pCreateInfo->height;
info.sampleCount = xrComponent.GetSampleCount();
info.usageFlags = XR_SWAPCHAIN_USAGE_SAMPLED_BIT | XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
// Currently not set up to use multisampled swapchain.
info.sampleCount = 1;
info.usageFlags = XR_SWAPCHAIN_USAGE_SAMPLED_BIT | XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
CHECK_XR_CALL(xrCreateSwapchain(xrComponent.GetSession(), &info, &mXrDepthSwapchain));

imageCount = 0;
Expand Down

0 comments on commit e1f8eb5

Please sign in to comment.