sceneDepth Raytracing

Hi. I have some object in scene.
I was calculating the distance of objects behind my translucent things with sceneDepth node.
because this node goes through translucency and ignores it.
now I enabled Raytracing mode and not rasterizing mode in my postprocessing.
I know raytracing doesn’t support these kinds of pixel calculations.
so what is the alternative way to get the distance of that object behind my translucent object if I cannot use sceneDepth node?
any trick in HLSL or nodebase node? thank you.