I have no any experience in game development, I'm doing some research on machine learning tasks and for my project I need to know how to get depth buffer. I tried to google but haven't found relevant materials except the software Reshade where it says that they forbid accessing PUBG depth buffer because of cheating.
So if anyone can point me in the direction of how to access depth buffer will be much appreciated!