How to get scene depth texture by C++?

Hi, how to get scene depth texture which can be read under the current camera by C++?