(D3D9) Move more Cg code to render_chain_cg.h