How do you Find Precision of Depth Buffer?

I want to know how many bits of precsion my depth buffer uses. How do I find this?

What is the typical value?


Depth buffer precision is set when you create your window. Typical values are 16, 24, or 32 bit.

Here’s a link to MSDN that describes:

You can also look at the code in Nehe tutorials, or other tutorials.

Hope that helps.

yazuka, it certainly helps. many thanks.