Z-buffer (depth Buffer) What is Z-buffer

Hi,

I am trying to implement a z-buffer on cuda. But other then that I am stumped. I have looked up z-buffer (also known as depth buffer) online and almost al the sites give a very short description and a equation. Other then that nothing. I need to understand what z-buffer is before I can actually implement. Any pearls of wisdom?

Regards