![]() |
![]() |
![]() |
Effect.OnLostDevice Method |
Language: |
Releases all references to video memory resources and deletes all state blocks.
Visual Basic .NET Public Sub OnLostDevice() C# public void OnLostDevice(); Managed C++ public: void OnLostDevice(); JScript .NET public function OnLostDevice();
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center