split off the D3D10 helpers to a separate header