Make xdk_d3d.cpp more like gfx/d3d9/d3d.cpp