(D3D9) Move more Cg functions to render_chain_cg.cg