Depth Bits Question


What is the meaning of the member cDepthBits in the PIXELFORMATDESCRIPTOR structure? I mean, I know this means the number of bits the depth buffer will have, but how does this affect the DepthBuffer? What is the actual diference of an 8, 16, 24 or 32 bits depth buffer?


Higher number of bits allows for more precision in the depth buffer, which can reduce depth-fighting artifacts.