Here we should check that the pD3D12Device value matches with the one used by this d3d9 device. It might be okay if we don't for now but at least a FIXME is necessary.
Sorry, I don't understand what this means? Which d3d12 device are we matching against the d3d9 device?