d3d9.dllOnLostDevice
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXEffect::OnLostDevice Method


Releases all references to video memory resources and deletes all state blocks.

Syntax

HRESULT OnLostDevice(VOID);

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



Remarks

This method should be called whenever the device is lost. Before this object can be used again, the device must be reset and the ID3DXEffect::OnResetDevice method called.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.