That doesn't change the fact that D3DMetal is closed-source. Wine just links to it.
There's also DXMT which is open-source, but doesn't support DX12.