mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #933] [MERGED] Swapchain recreation and window resizing #1838
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1838
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/933
Author: @LNDF
Created: 9/15/2024
Status: ✅ Merged
Merged: 9/25/2024
Merged by: @georgemoralis
Base:
main← Head:main📝 Commits (9)
7449846Always present acquired swapchain images161e3fbRecreate swapchain if window is resized010ae4aRespect aspect ratio when blitting to frame31c4490Make SDL window resizableeb5c47eclang-format7f8ccf4designator order (building with gcc)d33b084Clear frame before blitting4c486b7clang-formatdc598e8Revert "designator order (building with gcc)"📊 Changes
4 files changed (+67 additions, -17 deletions)
View changed files
📝
src/sdl_window.cpp(+1 -0)📝
src/video_core/renderer_vulkan/renderer_vulkan.cpp(+59 -14)📝
src/video_core/renderer_vulkan/vk_swapchain.cpp(+4 -3)📝
src/video_core/renderer_vulkan/vk_swapchain.h(+3 -0)📄 Description
This PR makes the window resizable and fits the image inside the window without stretching (respecting the aspect ratio).
Acquired swapchain images are released even if recreation is needed so they can be acquired again, fixing #865.
There may be a better place than the present funcion to recreate the swapchain.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.