Access color and depth buffer of each frame?

I’m also looking for a way to acess the depth,so were you able to finally figure out how to access the depth information in the viewport?