Client-side post-processing - Snapdragon Game Super Resolution

This commit is contained in:
Baplar
2025-04-13 22:28:31 +02:00
parent 1c57dae421
commit 99fbedab02
11 changed files with 468 additions and 33 deletions
+11 -2
View File
@@ -1148,8 +1148,17 @@ void scenes::stream::setup_reprojection_swapchain()
const uint32_t video_width = video_stream_description->width / view_count;
const uint32_t video_height = video_stream_description->height;
const uint32_t swapchain_width = video_width / video_stream_description->foveation[0].x.scale;
const uint32_t swapchain_height = video_height / video_stream_description->foveation[0].y.scale;
uint32_t swapchain_width = video_width / video_stream_description->foveation[0].x.scale;
uint32_t swapchain_height = video_height / video_stream_description->foveation[0].y.scale;
const configuration::sgsr_settings sgsr = application::get_config().sgsr;
if (sgsr.enabled)
{
const float upscaling_factor = sgsr.upscaling_factor;
spdlog::info("Using SGSR with an upscale factor of {}", upscaling_factor);
swapchain_width *= upscaling_factor;
swapchain_height *= upscaling_factor;
}
auto views = system.view_configuration_views(viewconfig);