Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ID2D1Device::GetResourceUsage method

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps | Metro style apps

Retrieves the current resource usage of all device contexts created logically from the Direct2D device.

Syntax

HRESULT GetResourceUsage(
  [out]  const D2D1_RESOURCE_USAGE *resourceUsage
);

Parameters

resourceUsage [out]

When this method returns, contains a pointer to a D2D1_RESOURCE_USAGE structure.

Return value

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The application can monitor the resource usage to see whether it is acceptable. If the resource usage grows too large, the application can use the ClearResources method on the device to delete the associated resources from the Direct2D context.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1Device
D2D1_RESOURCE_USAGE
ID2D1Device::ClearResources

 

 

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.