When using an empty definition like
Reshade throws an error:
error: X3004: undeclared identifier 'TEST'
I use this often in my code, for example like this:
//Aspectbars Definitions
#if (UPSCALE_ASPECT_BARS == 1)
#define ASPECTBARS [branch] if (texcoord.x < 0.125 || texcoord.x > 1 - 0.125) { return 0.0.xxxx; }
#else
#define ASPECTBARS
#endif
...
float4 PS_Adaption(float4 pos : SV_Position, float2 texcoord : TEXCOORD) : SV_Target
{
ASPECTBARS
float4 color = tex2Dlod(SAMPLERCURRENT, float4(texcoord, 0, 0));
...
return color;
}
This works with every other Reshade version I know (at least since 0.18).
So is this a bug or intended?
edit: I found an alternative for my use case: "#define TEST ;"
But I'm still interested if this intended or not.