Writing a simple DX11 framework