Previous Next

W-Buffering API

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

Value Meaning
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.