D3DX11UnsetAllDeviceObjects function

Note

The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.

Note

Instead of using this function, we recommend that you use the ID3D11DeviceContext::ClearState method.

Removes all resources from the device by setting their pointers to NULL. This should be called during shutdown of your application. It helps ensure that when one is releasing all of their resources that none of them are bound to the device.

Syntax

HRESULT D3DX11UnsetAllDeviceObjects(
  _In_ ID3D11DeviceContext *pContext
);

Parameters

pContext [in]

Type: ID3D11DeviceContext*

Pointer to an ID3D11DeviceContext object.

Return value

Type: HRESULT

The return value is one of the values listed in Direct3D 11 Return Codes.

Requirements

Requirement Value
Header
D3DX11core.h
Library
D3DX11.lib

See also

D3DX Functions