[SOLVED] tex2Dfetch() broken in d3d9

  • Daodan
  • Topic Author
More
5 years 2 months ago - 5 years 2 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: 5 years 2 months ago by Daodan.

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

  • crosire
More
5 years 2 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.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.