(XDK D3D) Refactor code in xdk_d3d_frame - make it more like render_chain
from PC D3D driver