Created
August 25, 2015 20:42
-
-
Save gyakoo/721e164202d3b108b46d to your computer and use it in GitHub Desktop.
Snippet to report all resource leaks in DX11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ID3D11Debug* pDebug=NULL; | |
HRESULT hr=m_pDevice->QueryInterface(__uuidof(ID3D11Debug), (void**)&pDebug); | |
m_pDevice->Release(); // report after device release (?) | |
if (SUCEEDED(hr)) | |
{ | |
pDebug->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment