Partager via


Effect.OnResetDevice() Method (Microsoft.DirectX.Direct3D)

Should be called after a device is reset and before any other methods are called, if Device.IsUsingEventHandlers is set to false.

Definition

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

Remarks

Because Device.IsUsingEventHandlers is set to true by default, it is unnecessary to call Effect.OnResetDevice under normal circumstances. However, if at any point Device.IsUsingEventHandlers is set to false, Effect.OnResetDevice should be called immediately after the device is reset.