Share via


D3DM_RESOURCEMANAGER_DATA (Windows CE 5.0)

Send Feedback

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.

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

Members

  • Action
    A D3DM_RESOURCEMANAGER_ACTION enumeration value that describes the action that the driver's resource manager needs to take.
  • 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

OS Versions: Windows CE 5.0
Header: D3dmddk.h.

See Also

Direct3D Mobile Driver Structures | D3DM_ResourceManager | D3DM_RESOURCEMANAGER_ACTION | Resource Management by Direct3D Mobile Drivers

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.