D3DHAL_DP2WINFO
TOC
Collapse the table of content
Expand the table of content

D3DHAL_DP2WINFO structure

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

Syntax


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

Header

D3dhal.h (include D3dhal.h)

See also

D3DDP2OP_WINFO
D3dDrawPrimitives2
D3DHAL_DP2COMMAND

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft