Partager via


D3DM_ResourceManager (Windows Embedded CE 6.0)

1/6/2010

This function supports calls from the Direct3D Mobile middleware that require the driver to take actions on its managed memory pool.

Syntax

typedef DWORD (*D3DM_RESOURCEMANAGER_PTR)(D3DM_RESOURCEMANAGER_DATA *);

Parameters

  • D3DM_RESOURCEMANAGER_DATA
    [in, out] A pointer to a D3DM_RESOURCEMANAGER_DATA structure that describes the actions that the driver must take on its managed memory pool.

Return Value

The following list identifies return value behaviors that you must adhere to in your implementation of D3DM_ResourceManager.

  • When processing a D3DM_RESACTION_DISCARD_BYTES action (see D3DM_RESOURCEMANAGER_ACTION), return D3DM_OK when the number of bytes requested to be flushed is available for allocation by the system at the call's return.
  • Otherwise, return D3DM_DRIVER_HANDLED when successful.
  • When processing a D3DM_RESACTION_DISCARD_BYTES action, return an error code if the requested number of bytes to be discarded is not available for allocation after the call has returned.

Remarks

When processing a D3DM_RESACTION_DISCARD_BYTES action, the actual number of bytes flushed from the pool is an implementation detail of the driver.

For more information about expected behaviors from D3DM_ResourceManger, see D3DM_RESOURCEMANAGER_DATA

Requirements

Header d3dmddk.h
Library Developer Implemented
Windows Embedded CE Windows CE 5.0

See Also

Reference

Direct3D Mobile Driver Functions
D3DM_RESOURCEMANAGER_ACTION
D3DM_RESOURCEMANAGER_DATA

Concepts

Resource Management by Direct3D Mobile Drivers