Effect.OnLostDevice Method

Language:

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

Definition

Visual Basic Public Sub OnLostDevice()
C# public void OnLostDevice();
C++ public:
void OnLostDevice();
JScript public function OnLostDevice();

Remarks

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

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center