mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
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:
1 parent
8e8cf5dbb4
commit
76d0d37941
4 files changed
+33
-23
No files matched your search
+1
-2
@@ -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, ¶ms.pixelWidth, ¶ms.pixelHeight);
|
||||
params.orientation = params.pixelHeight > params.pixelWidth * 1.1f ? DeviceOrientation::Portrait : DeviceOrientation::Landscape;
|
||||
gameOutputOrientation_ = params.orientation;
|
||||
gpu->SetPresentationOutput(¶ms);
|
||||
|
||||
Reference in new issue
Block a user