Table of contents
GDI
TOC
Collapse the table of content
Expand the table of content

W-Buffering API

Last Updated: 2/14/2017

The D3DRENDERSTATE_ZENABLE render state supports three settings from the D3DZBUFFERTYPE enumerated type.

ValueMeaning

D3DZB_FALSE

Disables all depth buffering.

D3DZB_TRUE

Enables z-buffer using perspective correct z.

D3DZB_USEW

Disables z-buffering but enables w-buffering, which is eye-relative z.

Because the exact format used for storing w varies widely, it should be assumed to be opaque.

Surface allocations and depth-fill operations work identically when using w-buffering. All z-buffer compare modes work identically in either case.

For more information, see the DirectX SDK documentation.

Send comments about this topic to Microsoft

© 2017 Microsoft