Outputs: Vulkan too, for --game-window and the iOS TV mode

The SDL game window gets its Vulkan surface the same way the main window
does, so it should work on Linux too. Windows and OpenGL aren't done.
EmuScreen asks the draw context for the output's size, which follows a
recreated Vulkan swapchain.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-22 20:11:36 +02:00
1 parent 8e8cf5dbb4
commit 76d0d37941
4 files changed
+33 -23

No files matched your search

+1 -2
View File
@@ -1683,8 +1683,7 @@ void EmuScreen::UpdateGameOutput() {
return;
}
OutputParams params;
params.pixelWidth = output->swapchain->Width();
params.pixelHeight = output->swapchain->Height();
screenManager()->getDrawContext()->GetFramebufferDimensions(output->swapchain, &params.pixelWidth, &params.pixelHeight);
params.orientation = params.pixelHeight > params.pixelWidth * 1.1f ? DeviceOrientation::Portrait : DeviceOrientation::Landscape;
gameOutputOrientation_ = params.orientation;
gpu->SetPresentationOutput(&params);