PeterTh/gedosato — pull request #52 by Boulotaur2024 (2014-08-08 16:25:00+00:00)
Title: Depth buffer access integrated into the Generic plugin (working for a few games)

Depth buffer access integrated into the Generic plugin (working for a few games)

(It has NVAPI libs I don't know if they really necessary. I did a quick test at work on a NVIDIA card and depth access seemed to work using these so it should be okay - as for me I'm an AMD user)

Works by creating a INTZ texture (backbuffer size) at plugin startup and injecting it at the SetDepthStencil stage -with the help of CreateDepthStencil in order to find the best match for the substitution-

List of tested games working :
Stalker
Heaven Benchmark | Unigine
Return to Castle Wolfenstein (lol yeah)
Severance Blade of Darkness
Demo ('fr-041_debris')
System Shock 2
Borderlands 2
Devil May Cry 4
Dark Souls 2 (not 100% sure lol)

List of tested games not working :
Dishonored
DMC Devil May Cry
Deus Ex HR (well this one half works :p)

I adapted your 'VSSAO2.fx' so that it is able to both read from a rendertarget and from the hardware zbuffer. You might want to create a separate file I don't know. (Also I made sure DarkSouls 2 still works as intended)

I recommend trying this out with the demo « fr-041_debris ». Small exe no setup. Gorgeous. I'd really like to know if this works on NVIDIA cards

PS : Github confuses the hell out of me. It seems old pull requests are still 'active' somehow. I hope I didn't do any mistakes and everything goes well for you. Let me know

Cheers