Direct2D groundwork