Share via


D3DHAL_DP2SETRENDERTARGET

This structure is used with the D3DDP2OP_SETRENDERTARGET opcode to map a new rendering target surface and depth buffer in the current context.

typedef struct _D3DHAL_DP2SETRENDERTARGET {
  DWORD hRenderTarget;
  DWORD hZBuffer;
} D3DHAL_DP2SETRENDERTARGET, *LPD3DHAL_DP2SETRENDERTARGET;

Members

  • hRenderTarget
    Is a handle to the rendering target.
  • hZBuffer
    Is a handle to the depth buffer.

Remarks

The driver should carry out the following tasks in response to a D3DDP2OP_SETRENDERTARGET opcode in the D3dDrawPrimitives2 command stream:

  1. Store the rendering target identified by hRenderTarget in the driver's context.
  2. Store the depth buffer identified by hZBuffer in the driver's context.

Requirements

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

See Also

D3DDP2OP_SETRENDERTARGET | D3dDrawPrimitives2 | D3DHAL_XXX Structures

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.