[PATCH 1/6] dxgi: Move D3D12 helper functions closer to the top of the file.