When you run this shader in d3d9 the color of the pixel at position 0/0 is drawn over the whole screen:
#include "ReShade.fxh"
float3 Test_PS(float4 vpos : SV_Position, float2 texcoord : TexCoord) : SV_Target {
return tex2Dfetch(ReShade::BackBuffer, int4(vpos.xy, 0, 0)).rgb;
}
technique Test {
pass {
VertexShader = PostProcessVS;
PixelShader = Test_PS;
/* RenderTarget = BackBuffer */
}
}