How to correctly obtain the color texture and depth texture of the preview camera under URP

How to correctly obtain the color texture and depth texture of the preview camera under URP。