add d3d context