(XDK D3D) Split up more code into render_chain_xdk.cpp