title: UWP Hardware Video Decoding - DirectX12 vs Media Foundation
body: <p>I would like to use DirectX 12 to load each frame of an H264 file into a texture and render it. There is however little to no information on doing this, and the Microsoft website has limited superficial documentation.</p>
  <p>Media Foundation has plenty of examples and offers Hardware Enabled decoding. Is the Media Foundation a wrapper around DirectX or is it doing something else?</p>
  <p>If not, how much less optimised would the Media Foundation equivalent be in comparison to a DX 12 approach?</p>
  <p>Essentially, what are the big differences between Media Foundation and DirectX12 Video Decoding?</p>
  <p>I am already using DirectX 12 in my engine so this is specifically regarding DX12.</p>
  <p>Thanks in advance.</p>