Share via


D3DHAL_DP2WINFO

This structure is used to inform the driver of the w-range to be used for w-buffering.

typedef struct _D3DHAL_DP2WINFO {
  D3DVALUE dvWNear;
  D3DVALUE dvWFar;
} D3DHAL_DP2WINFO, *LPD3DHAL_DP2WINFO;

Members

  • dvWNear, dvWFar
    Specify the near and far limit of the w-buffer, respectively. These members can be any valid floating-point values.

Remarks

The D3dDrawPrimitives2 callback parses a D3DHAL_DP2WINFO structure from the command buffer and updates the driver's scaling parameters for w-buffering when D3DHAL_DP2COMMAND is set to D3DDP2OP_WINFO.

One D3DHAL_DP2WINFO structure follows the D3DHAL_DP2COMMAND structure in the command buffer.

The driver should update the w-buffer portion of its internal rendering context with the w-ranges specified in this structure. The driver can use this information to scale the w-buffer.

Video adapters that do not support this feature should ignore and skip over these instructions and continue processing the rest of the command buffer.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3dhal.h.

See Also

D3dDrawPrimitives2 | D3DHAL_DP2COMMAND | D3DDP2OP_WINFO | D3DHAL_XXX Structures

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.