How to Accessing GBuffer from C++ In UE5

In my project, I want to get the depth information of the scene, custom depth information, and maybe some others, which can be obtained from Gbuffer. I found a related question Accessing GBuffer from C++, but the solution is out of date in UE5, as RHI has been completely replaced by RDG in UE5.
FSceneRenderTargets& SceneContext = FSceneRenderTargets::Get(RHICmdList) is no longer available in UE5.
So what is the C++ access Gbuffer method in UE5, this problem has been tormenting me for two days.

I have the same problem as yours. Have you resolved this? If yes,would you please share your metod? thank you ~

Sorry replay too late,Actually I found you are using MRQ,The function you are doing is very likely to be similar to mine。MRQ can export postprocess i think you had know,just create a prostprocess material to out scenetexture。