Base for d3d/d2d/dwrite interoperability.