d3d11_fmt: group the ID3D11Device and ID3D11DeviceContext in a structure