Value stored in Z-Buffer

Hello All,

I was reading this article on Z-Buffer:
I see that the actual value stored in the Z-Buffer is:

[i]z_buffer_value = (1<<N) * ( a + b / z )


 N = number of bits of Z precision
 a = zFar / ( zFar - zNear )
 b = zFar * zNear / ( zNear - zFar )
 z = distance from the eye to the object

Is this the same way the Z-Buffer values are stored on all graphic cards? or could it differ?

The math is hardware independent. Aside from numerical issues, I’d suggest that all GPUs produce relatively identical depth values.

Thanks for the confirmation thokra!