Add Get(Inv)WindowResolution shader functions (#5818)

Those are available in upstream Dolphin, so it will help with keeping things compatible.
This commit is contained in:
Valeri authored and GitHub committed 2021-07-24 12:35:33 -05:00
1 parent 647a6f8d82
commit dd31ed60c0
1 file changed
+10
@@ -90,6 +90,16 @@ float2 GetIInvResolution()
return i_resolution.zw;
}
float2 GetWindowResolution()
{
return o_resolution.xy;
}
float2 GetInvWindowResolution()
{
return o_resolution.zw;
}
float2 GetOResolution()
{
return o_resolution.xy;