ID2D1Device::ClearResources method
Clears all of the rendering resources used by Direct2D.
Syntax
HRESULT ClearResources( UINT millisecondsSinceUse = 0 );
Parameters
- millisecondsSinceUse
-
Type: UINT
Discards only resources that haven't been used for greater than the specified time in milliseconds. The default is 0 milliseconds.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also