(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