Client-side post-processing - Snapdragon Game Super Resolution
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user