Why do we need a depth buffer to display a single 3D cube?

by user89   Last Updated August 01, 2018 23:13 PM - source

According to a Vulkan tutorial I am following, I will need to create a depth buffer in order to display a 3D cube:

enter image description here

However, as far as I understand, depth buffers are used for the Z-buffering technique, which helps one efficiently calculate occlusion effects. If I have a single 3D cube in a scene, there is never going to be any occlusion. So why would I need a depth buffer?

Related Questions

Extracting Depth images from GPU

Updated October 16, 2017 17:13 PM

Improving Shadow

Updated November 25, 2017 09:13 AM

Where do the buffer values come from when rendering?

Updated January 02, 2018 19:13 PM