Welcome, Guest.
Username: Password: Remember me

TOPIC: (Solved) Compilation error of ReShade.fxh in DX10

(Solved) Compilation error of ReShade.fxh in DX10 3 months 2 weeks ago #1



Far Cry 2 GOG version produces compilation error of ReShade.fxh and DisplayLUT.fx (avaible here github.com/Fubaxiusz/fubax-shaders/blob/...haders/DisplayLUT.fx )

LogFile:
Warning: Spoiler! [ Click to expand ]


*edit
It seems like DirectX 10 compilator has a problem, that OpenGL hasn't, with conditionals of a vector value, like
texcoord.xy > LutSize.xy ?
DirectX wants something like this:
texcoord.x > LutSize.x & texcoord.y > LutSize.y ?

*edit No.2
Problem has been fixed :cheer:
github.com/Fubaxiusz/fubax-shaders/commi...72f5e9eb6a6804172dfa
Last Edit: 3 months 2 weeks ago by Fu-Bama.
The administrator has disabled public write access.

(Solved) Compilation error of ReShade.fxh in DX10 3 months 2 weeks ago #2

Since when does Far Cry 2 work with ReShade > v0.15? I have to try it again.

edit: Nice, it seems to work again since v3.3. Never thought it would ever get fixed.
This should also work for Avatar: The Game, since it uses the same engine (Dunia).
Last Edit: 3 months 2 weeks ago by brussell.
The administrator has disabled public write access.

(Solved) Compilation error of ReShade.fxh in DX10 3 months 2 weeks ago #3

Comparing vectors gives you a bool vector in return. "if" only accepts scalars, so you first need to use one of the "all" or "any" intrinsics to get a scalar bool from the vector.
bool2 compare = texcoord.xy > LutSize.xy;
bool all_components_true = all(compare);
if (all_components_true) { ... }
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: Fu-Bama

(Solved) Compilation error of ReShade.fxh in DX10 3 months 2 weeks ago #4

Slightly offtopic, but I'm not able to run Far Cry 2 in DX10 mode with the newest ReShade versions. I get errors in the log, which Fu-Bama doesn't:

Warning: Spoiler! [ Click to expand ]


Reshade compiles, but the game always reverts to dx9 mode. Any ideas?
(with Reshade v0.19 the dx10 mode worked when setting the ingame option to dx10 and using d3d9.dll, but now it won't anymore)
Last Edit: 3 months 2 weeks ago by brussell.
The administrator has disabled public write access.