ID3D10StateBlock::ReleaseAllDeviceObjects method (d3d10effect.h)

Release all references to device objects.

Syntax

HRESULT ReleaseAllDeviceObjects();

Return value

Type: HRESULT

Returns one of the following Direct3D 10 Return Codes.

Remarks

Each time you return a pointer to an interface (by calling ID3D10StateBlock::GetDevice), the internal reference count is incremented; when you are finished using a stateblock, call this method to release all references and avoid a memory leak.

Requirements

Requirement Value
Target Platform Windows
Header d3d10effect.h

See also

ID3D10StateBlock Interface