This is ray marching, not ray tracing. Ray marching takes steps through an implicit surface, in this case the depth buffer, while ray tracing does full ray/triangle intersections.
Games have been doing SSR with ray marching for a decade at least [0]. Just inverting the image would only work on perfectly flat surfaces exactly aligned with the camera.
Seems*
Re:Screen Space Reflection
by Sohcahtoa82 on Thursday March 14, 2024 @12:23PM
(#39705902)
Typo. I know the difference.
At least in games, they usually just take the rendered image, invert it, and then show it on the reflective surface, with some optional blurring added depending on the surface. It's extremely quick, though certainly has shortcomings.