Example of TraceMaterialRayPacked in usf shader / LineTraceByChannel shader equivalent

I’m working on a ray-marched Kerr black hole with gravitational lensing. My post-process shader can ray-march through the scene SDF, but when it gets to a surface I need to acquire the UV and material info on the hit surface. I’m looking for the shader/usf/hlsl equivalent of LineTraceByChannel. I’ve looked through the engine usf files, and found TraceMaterialRayPacked. However when I try to import “/Engine/Private/RayTracingCommon.ush” I get import errors, and I can’t find a clean example of its use. Could somebody please post an example of how to call this function? Is there a different function I should be looking for?

Big McThankies