description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID3DXRenderToSurface::OnResetDevice method - Use this method to re-acquire resources and save initial state. |
a326a465-ee90-466d-8e46-22e082e9533c |
ID3DXRenderToSurface::OnResetDevice method (D3dx9core.h) |
reference |
05/31/2018 |
|
|
|
|
Use this method to re-acquire resources and save initial state.
HRESULT OnResetDevice();
This method has no parameters.
Type: HRESULT
If the method succeeds, the return value is S_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.
ID3DXRenderToSurface::OnResetDevice should be called each time the device is reset (using IDirect3DDevice9::Reset), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.
Requirement | Value |
---|---|
Header |
|
Library |
|