What is the format of DXGI_FORMAT_D24_UNORM_S8_UINT?

Posted by bobobobo on Game Development See other posts from Game Development or by bobobobo
Published on 2012-07-02T00:21:43Z Indexed on 2012/07/02 3:24 UTC
Read the original article Hit count: 337

Filed under:
|

I'm trying to read the values in a depth texture of type DXGI_FORMAT_D24_UNORM_S8_UINT.

I know this means "24 bits for depth, 8 bits for stencil" "A 32-bit z-buffer format that supports 24 bits for depth and 8 bits for stencil.", but how do you interpret those 24 bits?

It's clearly not going to be a 32-bit int, and it's not going to be a 32-bit float. If it is an integer value, how "far away" is a value of "1" in the depth texture?

© Game Development or respective owner

Related posts about directx11

Related posts about depth-buffer