Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.49 KB

id3dxrendertosurface--onresetdevice.md

File metadata and controls

66 lines (41 loc) · 1.49 KB
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
APIRef
kbSyntax
ID3DXRenderToSurface.OnResetDevice
COM
d3dx9.lib
d3dx9.dll

ID3DXRenderToSurface::OnResetDevice method

Use this method to re-acquire resources and save initial state.

Syntax

HRESULT OnResetDevice();

Parameters

This method has no parameters.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

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.

Requirements

Requirement Value
Header
D3dx9core.h
Library
D3dx9.lib

See also

ID3DXRenderToSurface