D3DHAL_DP2BUFFERBLT structure (d3dhal.h)

DirectX 8.0 and later versions only.

D3DHAL_DP2BUFFERBLT is used for vertex or index buffer blts when D3dDrawPrimitives2 responds to the D3DDP2OP_BUFFERBLT command token.

Syntax

typedef struct _D3DHAL_DP2BUFFERBLT {
  DWORD    dwDDDestSurface;
  DWORD    dwDDSrcSurface;
  DWORD    dwOffset;
  D3DRANGE rSrc;
  DWORD    dwFlags;
} D3DHAL_DP2BUFFERBLT;

Members

dwDDDestSurface

Specifies the handle to the destination vertex or index buffer.

dwDDSrcSurface

Specifies the handle to the source vertex or index buffer.

dwOffset

Specifies the offset, in bytes, of the destination buffer the copy should be directed into.

rSrc

Specifies what range of the source buffer should be copied. This is a D3DRANGE structure, which is described in the Microsoft Windows SDK documentation, and contains a UINT offset in bytes and a UINT size in bytes.

dwFlags

Unused.

Remarks

The CreateD3DBuffer callback creates the small integer handles to the vertex or index buffers that can be used as source and destination buffers for buffer blts.

See Remarks for D3DHAL_DP2TEXBLT.

Requirements

Requirement Value
Header d3dhal.h (include D3dhal.h)

See also

CreateD3DBuffer

D3DDP2OP_BUFFERBLT

D3DHAL_DP2COMMAND

D3dDrawPrimitives2