Export (0) Print
Expand All

ID3D10StateBlock::ReleaseAllDeviceObjects method

Release all references to device objects.

Syntax


HRESULT ReleaseAllDeviceObjects();

Parameters

This method has no parameters.

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

Header

D3D10Effect.h

See also

ID3D10StateBlock Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft