shadow: move DXGI 1.2 code to separate file