Can I create a global shader that accesses ray tracing?

I have a global shader that I want to convert that uses standalone OptiX, and want to use in Unreal in C++. Basically want to be able to get raw ray tracing data, such as controling ray direction, and get hit points, etc. Is this possible in Unreal? If so what can I look for?