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 2021-07-24 20:35:33 +03:00 committed by GitHub
parent 647a6f8d82
commit dd31ed60c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,16 @@ float2 GetIInvResolution()
return i_resolution.zw; return i_resolution.zw;
} }
float2 GetWindowResolution()
{
return o_resolution.xy;
}
float2 GetInvWindowResolution()
{
return o_resolution.zw;
}
float2 GetOResolution() float2 GetOResolution()
{ {
return o_resolution.xy; return o_resolution.xy;