Share via


D3DM_DRAWPRIMITIVE_DATA (Windows Embedded CE 6.0)

1/6/2010

This structure describes the properties of a command buffer. A pointer to this structure is passed as a parameter of the D3DM_DrawPrimitive function.

Syntax

typedef struct _D3DM_DRAWPRIMITIVE_DATA {
  ULONG nContextId;
  LPVOID pCommands;
  ULONG nStartOffset;
  ULONG nEndOffset;
  HRESULT rval;
} D3DM_DRAWPRIMITIVE_DATA;

Members

  • nContextId
    A ULONG value containing the rendering context in which to process this command buffer.
  • pCommands
    An LPVOID value pointing to the command buffer to be processed.
  • nStartOffset
    A ULONG value containing the byte offset within the command buffer to begin processing.
  • nEndOffset
    A ULONG value containing the byte offset within the command buffer to end processing.
  • rval
    An HRESULT value containing an error code reported by the driver to describe any problems it encountered while trying to parse commands in the buffer. If the driver did not encounter any errors, it sets this value to D3DM_OK to indicate success. Any errors that arise during the execution of the command buffer should be held in the driver's error code.

Requirements

Header d3dmddk.h
Windows Embedded CE Windows CE 5.0

See Also

Reference

Direct3D Mobile Driver Structures
D3DM_DrawPrimitive (Function)

Concepts

Command Buffer Structure