Gfx: Added basic D2D support