Welcome, Guest.
Username: Password: Remember me

TOPIC: [SOLVED] tex2Dfetch() broken in d3d9

[SOLVED] tex2Dfetch() broken in d3d9 4 months 2 weeks ago #1

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: 4 months 2 weeks ago by Daodan.
The administrator has disabled public write access.

tex2Dfetch() broken in d3d9 4 months 2 weeks ago #2

Cheers, crosire =)
The administrator has disabled public write access.