d3d10 porting