Skip to content

Commit

Permalink
Update ReShade.fxh
Browse files Browse the repository at this point in the history
  • Loading branch information
brimson authored May 20, 2022
1 parent 9a3d7cb commit 7d28894
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions shaders/ReShade.fxh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
namespace ReShade
{
#if defined(__RESHADE_FXC__)
float GetAspect_Ratio() { return BUFFER_WIDTH * BUFFER_RCP_HEIGHT; }
float GetAspectRatio() { return BUFFER_WIDTH * BUFFER_RCP_HEIGHT; }
float2 GetPixelSize() { return float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT); }
float2 GetScreen_Size() { return float2(BUFFER_WIDTH, BUFFER_HEIGHT); }
#define Aspect_Ratio GetAspect_Ratio()
float2 GetScreenSize() { return float2(BUFFER_WIDTH, BUFFER_HEIGHT); }
#define AspectRatio GetAspectRatio()
#define PixelSize GetPixelSize()
#define ScreenSize GetScreen_Size()
#define ScreenSize GetScreenSize()
#else
// These are deprecated and will be removed eventually.
static const float Aspect_Ratio = BUFFER_WIDTH * BUFFER_RCP_HEIGHT;
static const float AspectRatio = BUFFER_WIDTH * BUFFER_RCP_HEIGHT;
static const float2 PixelSize = float2(BUFFER_RCP_WIDTH, BUFFER_RCP_HEIGHT);
static const float2 ScreenSize = float2(BUFFER_WIDTH, BUFFER_HEIGHT);
#endif
Expand Down

0 comments on commit 7d28894

Please sign in to comment.