title: Display bitmap in current window directly from Device (Video) Memory
body: <p>Suppose I already have a bitmap (an image) in Device (Video) Memory using <code>cudaMalloc()</code> and <code>cudaMemcpy()</code>.</p>
  
  <p>What is the simplest way to display this bitmap directly on screen (current window)?</p>
  
  <p>I am guessing there should be an alternative to GDI's <code>BitBlt()</code>... but any approach (Direct3D, OpenGL or even GDI) will be fine.</p>
  
  <p>Examples in CUDA SDK (OpenGL version) use Texture, that uses buffer (Pixel Buffer Object) for holding data, that is registered as CUDA-resource, that should be mapped/unmapped at each frame (<code>glutDisplayFunc()</code> call). And all that seems just a tiny little bit complicated and uncalled for.</p>