// Tests for video::SwapchainPolicy, ChooseExtent and FitUiDisplay // (runtime/video/swapchain_policy.cpp): when the presenter builds its // swapchain again, at what size, and the size the UI lays out at. Each // scenario drives the policy as presenter.cpp does (the surface read when it // asks, a rebuild at the size it decides, a view fitted back when it says, // MoltenVK's SUBOPTIMAL after a present while the layer and the swapchain // disagree); then every planted wrong rule must fail at least one scenario. // From the repo root: // clang++ -std=c++20 -O2 -Iruntime tests/swapchain_policy_test.cpp runtime/video/swapchain_policy.cpp -o build/swapchain_policy_test // build/swapchain_policy_test #include