Hello,
Welcome to Microsoft Q&A!
I suggest you could try to enable the debug layer.
To enable the debug layer, specify the D3D11_CREATE_DEVICE_DEBUG
flag in the Flags parameter when you call the D3D11CreateDevice function
to create the rendering device.
And then you could try to call ID3D11Debug::ReportLiveDeviceObjects method with D3D11_RLDO_DETAIL
to obtain detailed information about a device object's lifetime.
Thank you.
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.