(D3D) Create graphics context driver for D3D and move
state code over to it