[SOLVED] tex2Dfetch() broken in d3d9

  • Daodan
  • Topic Author
More
6 years 7 months ago - 6 years 7 months ago #1 by Daodan [SOLVED] tex2Dfetch() broken in d3d9 was created 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 */
	}
}
Last edit: 6 years 7 months ago by Daodan.

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

  • crosire
More
6 years 7 months ago #2 by crosire Replied by crosire on topic tex2Dfetch() broken in d3d9

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