This may be what they said you could do
https/www.reddit.com/r/xboxone/comments/3kv4uc/use_your_xbox_one_and_windows_10_to_record/
It says you plug what you want to record into the xbox HDMI input and then you can record that onto your Win10 PC over your network. Not exactly what you want to do
If you're just attaching to a GPU/onboard HDMI, those are 'out' only.
You'd need a capture card with HDMI 'in'.
I went to gamestop and they said to plug in the hdmi cord from the computer to xbox now my xbox only has 2 hdmi plug in's and one of them goes to the TV so if I unplug it and put it in the other one it does not come on and I only have 1 hdmi plug in on my computer so what do I do.
This may be what they said you could do
https/www.reddit.com/r/xboxone/comments/3kv4uc/use_your_xbox_one_and_windows_10_to_record/
It says you plug what you want to record into the xbox HDMI input and then you can record that onto your Win10 PC over your network. Not exactly what you want to do