How C++ cross platform renderer communicates with DirectX through RHI?

I have a question regarding DirectX in Unreal Engine.

In this screenshot, How C++ cross platform renderer communicates with DirectX through RHI?

Let’s say if I want to accomplish this - Tutorial 4: Buffers, Shaders, and HLSL how UE4 will do that(draw a triangle)?

Thanks
Indy