CustomPass.SetCameraRenderTarget is obsolete.

“…Use directly CoreUtils.SetRenderTarget with the render target of your choice”.

Great, could you specify how to get the references for the camera color and depth buffers which are required by CoreUtils.SetRenderTarget?

Hello,

You should have a Custom Pass Context in the parameter of your pass, it contains all the render targets that were previously accessible with getters

https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.1/api/UnityEngine.Rendering.HighDefinition.CustomPassContext.html

Thanks.