D3DImage and Software Rendering

If the WPF render thread is doing software rendering, D3DImage will not show up. I don't think we specifically called this out in the documentation so it can come as a surprise when you first encounter it. Off the top of my head, here are times when the render thread is in software:

  1. RenderCapability.Tier == 0
  2. You set HwndTarget.RenderMode = SoftwareOnly
  3. A video card driver before November 2004 (date subject to change in the future)
  4. Remote desktop
  5. The window size is larger than the max texture size of the video card (rare)

All of these cases should be covered by simply checking #1 except for #2. You might be surprised by #4, but in 3.5 SP1 we had to change how remoting works.

You're probably thinking that I left out RenderTargetBitmap and printing since they both use software rendering, but they happen on the UI thread! D3DImage will show up because they call CopyBackBuffer().

-- Jordan

P.S. Don't forget to read the perf notes when using D3DImage

Comments (4)

  1. TDworshak says:

    This is really unfortunate.  It means that an app that uses D3DImage won't display correctly when accessed over Remote Desktop (which always yields render tier 0).  Other Direct3D apps work fine over RDP, so it is a mystery why Microsoft couldn't get this to work.

  2. Luke says:


    It's working in .Net 4.5

Skip to main content