Partager via


D3DM_RESOURCEMANAGER_DATA (Windows Embedded CE 6.0)

1/6/2010

This structure provides data that describes actions that the driver should perform on its managed memory pool. This a pointer this structure is passed as an argument to D3DM_ResourceManager.

Syntax

typedef struct _D3DM_RESOURCEMANAGER_DATA {
  D3DM_RESOURCEMANAGER_ACTION Action;
  ULONG nContextId;
  ULONG nDiscardBytes;
  ULONG nSurfaceId;
  ULONG nNewPriority;
  HRESULT rval;
} D3DM_RESOURCEMANAGER_DATA;

Members

  • nContextId
    A ULONG value that identifies the handle of the context that the resource action should be performed in.
  • nDiscardBytes
    A ULONG value that identifies the number of bytes to flush out of the managed pool when the Action member is set to the value D3DM_RESACTION_DISCARD_BYTES. Setting this member to 0 indicates that the entire managed pool should be flushed.
  • nSurfaceId
    A ULONG value that identifies the surface handle to be operated on when the Action member is set to D3DM_RESACTION_SET_PRIORITY or D3DM_RESACTION_PRELOAD.
  • nNewPriority
    A ULONG value containing the new priority value to assign to the surface identified by the nSurfaceId member when the value of the Action member is D3DM_RESACTION_SET_PRIORITY.
  • rval
    An HRESULT value containing an error code reported by the driver to describe any problems it encountered while working with the managed memory pool. If the driver did not encounter any errors, it sets this value to D3DM_OK to indicate success.

Requirements

Header d3dmddk.h
Windows Embedded CE Windows CE 5.0

See Also

Reference

Direct3D Mobile Driver Structures
D3DM_ResourceManager
D3DM_RESOURCEMANAGER_ACTION

Concepts

Resource Management by Direct3D Mobile Drivers