Welcome, Guest.
Username: Password: Remember me

TOPIC: MasterEffect DOF's broken with latest Reshade

MasterEffect DOF's broken with latest Reshade 1 year 9 months ago #1

  • jmp909
  • jmp909's Avatar
  • Offline
  • Posts: 135
  • Thank you received: 48
(moved from here, as that specific topic is solved reshade.me/forum/shader-troubleshooting/...-with-latest-reshade)

just a couple of notes with SunBroDave's preset:

PETKAGTADOF is broken (i've fixed this see below)
S:\Games\SteamLibrary\steamapps\common\SleepingDogs\Shader@0x27EC0E48(827,66): error X3536: Duplicated input semantics can't change type, size, or layout ('SV_POSITION').

as is GP65CJ042DOF (I don't know how to fix this)
S:\Games\SteamLibrary\steamapps\common\SleepingDogs\Shader@0x27D0A498(865,14): warning X4008: floating point division by zero
S:\Games\SteamLibrary\steamapps\common\SleepingDogs\Shader@0x27D0A498(868,14): warning X4008: floating point division by zero

MATSODOF throws a warning.
SleepingDogs\Shader@0x15937038(853,12): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them

I'm assuming these are all because it's an older preset, although it is the same Shader code for GP65 as the one in the latest MasterEffect, so it must be more a compatibility issue with ReShade

---

I partly fixed PETKAGTADOF by changing the float2 to a float4
float4 PS_ProcessDoFBokeh(VS_OUTPUT_POST IN, float2 vPos : VPOS) :
to
float4 PS_ProcessDoFBokeh(VS_OUTPUT_POST IN, float4 vPos : VPOS) :

i then received this error
S:\Games\SteamLibrary\steamapps\common\SleepingDogs\Shader@0x28215718(863,68): warning X3556: integer divides may be much slower, try using uints if possible.
S:\Games\SteamLibrary\steamapps\common\SleepingDogs\Shader@0x28215718(864,40): warning X3556: integer divides may be much slower, try using uints if possible.

so I changed all the int's to uint's in the float4 PS_ProcessDoFBokeh function and that's fixed it

thought I'd leave this here for anyone with the same issue

thanks for any help fixing the others

regards
J
Last Edit: 1 year 9 months ago by jmp909.
The administrator has disabled public write access.
The following user(s) said Thank You: Courier

MasterEffect DOF's broken with latest Reshade 1 year 8 months ago #2

  • jmp909
  • jmp909's Avatar
  • Offline
  • Posts: 135
  • Thank you received: 48
Apologies , Marty has pointed out that the conversion of the shaders to the new version is not yet 100% complete, so some of these errors are going to happen for now

Could anyone advise on which of the older versions of MFx and ReShade work well together currently ?

Thanks
J
The administrator has disabled public write access.