[SOLVED] tex2Dfetch() broken in d3d9

  • Posts: 176
1 year 1 month ago - 1 year 1 month ago #1 by Daodan
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 */
	}
}

Please Log in or Create an account to join the conversation.

  • Posts: 3665
1 year 1 month ago #2 by crosire

Please Log in or Create an account to join the conversation.