gb-pass5 - determine border size from SourceSize and OriginalSize.

Use only Y for compatibility with non-square pixel consoles.
This commit is contained in:
nfp0 2022-05-07 17:27:21 +01:00
parent f9d9c9724c
commit 9fcf6bf196

View file

@ -4,6 +4,7 @@ layout(push_constant) uniform Push
{ {
vec4 OutputSize; vec4 OutputSize;
vec4 SourceSize; vec4 SourceSize;
vec4 OriginalSize;
float video_scale; float video_scale;
} params; } params;
@ -11,7 +12,7 @@ layout(push_constant) uniform Push
vec2 middle = vec2(0.5, 0.5); vec2 middle = vec2(0.5, 0.5);
vec2 screen_scale = params.OutputSize.xy * params.SourceSize.zw; vec2 screen_scale = params.OutputSize.xy * params.SourceSize.zw;
vec2 border_scale = vec2(800, 400) * params.video_scale; vec2 border_scale = vec2(800, 400) * (params.SourceSize.y / params.OriginalSize.y);
layout(std140, set = 0, binding = 0) uniform UBO layout(std140, set = 0, binding = 0) uniform UBO
{ {