title: Render video using direct3D
body: <p>We have an old application uisng DirectDraw 8. It writes pixel by pixel to video memory directly and everything is fine.
  Now I need port it into a windows stores app.</p>
  
  <p>Media Foundation seems to be the recommended path for rendering video and went through the "Media engine native C++ video playback sample (Windows 8.1)"
  But even Media Foundation uses DirectDraw for the video rendering.</p>
  
  <pre><code>    ComPtr&lt;ID3D11Texture2D&gt; backBuffer; 
      DX11SwapChain-&gt;GetBuffer(0, IID_PPV_ARGS(&amp;backBuffer));
  
       m_spMediaEngine-&gt;TransferVideoFrame(backBuffer.Get(), nullptr, &amp;m_rcTarget, &amp;m_bkgColor);
  
       DX11SwapChain-&gt;Present(1, 0);
  </code></pre>
  
  <p>So went through the Direct3D samples and am able to get the backBuffer. But all the samples seem to be dealing with drawing lines etc.
  and none on setting individual pixels. </p>
  
  <p>How do I get my hands on the pixels? i.e set BackBuffer[somepixel] = someRGBA</p>