1

Browsing through direct2d resources it seems hardware-acceleration is not available for server-side scenarios.

My requirement is to render images off-screen. While this is easy to achieve using WicBitmapRenderTarget it isn't hardware-accelerated. Is there away to achieve this using Direct2d?

Goran
  • 6,798
  • 9
  • 41
  • 57

1 Answers1

0

The way to do off-screen rendering with hardware acceleration is to allocate an IDXGISurface with DXGI, then use ID2D1Factory::CreateDxgiSurfaceRenderTarget() to render to it.

Unfortunately, I think this still won't work for a server, since services run in session 0 which doesn't allow hardware acceleration. I'm hazy on the specifics.

The other "unfortunately" is that working with DXGI resources is much more complex than anything in Direct2D. Lots of "paperwork" to fill out and stuff.

Rick Brewster
  • 3,374
  • 1
  • 17
  • 21