About FPS games using HDRP to render weapons

I tried to use custom pass to achieve but there is a problem.
Used in GBuffer, there is no light effect, and the transparency effect appears in forward.
Does anyone know how to solve it?

Hello? Any ideas ?

Hello, I’m a bit late to the party, but I also have some issues with this.

https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@7.1/manual/Custom-Pass.html

The doc clearly says that depth artefacts are expected on after post process. However, I also have artefacts in the other injection points.