A depth buffer ensures that items are drawn in the correct order. It's a list of all of the items that need to be drawn to the scene, and it puts them in the order of how close they are to the camera.