How to obtain the information output by the ReportLiveDeviceObjects interface in memory?

jianping liu 0 Reputation points
2023-07-30T05:05:58.8966667+00:00

Currently, it can only be seen in the output of the debugger. I hope to obtain it in the app's memory for easy user interaction

Windows development | Windows API - Win32
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2023-07-31T03:02:29.1166667+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.