How can i use glReadPixels() in vega program?

How can i use glReadPixels() in vega program to get the depth buffer digital from a vega 3D model?
thanks!

Do your buffer reading in a post-draw callback.