Merge pull request #7869 from stenzek/d3dcommon D3D: Move sharable D3D11/D3D12 code to common library