mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
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:
parent
647a6f8d82
commit
dd31ed60c0
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue