Are Win32 GDI BitBlt and StretchBlt Improved?

I cannot get a specific answer to this question by searching. Are Win32 hardware accelerators accelerated (GDI, not GDI +). I do not know how these functions interact with the graphics driver. Is there any function call to test this function like GetCaps? for a specific graphics device (win32 graphics device) to find out if these features receive hardware acceleration?

+6
source share
2 answers

According to this , GDI is only hardware accelerated in Windows 7 and beyond. This section describes how to specify which operations should be hardware accelerated. included in the list of StretchBlt and StretchBlt , so yes, they are hardware accelerated, but you need a system that supports it, and you need to enable it.

+3
source

If hardware accelerated GDI operations are driver dependent, but all versions of Windows except Vista * support it.

  • Vista has added a new driver model called the Windows Display Driver Model (WDDM).
  • In Windows 7, WDDM v1.1 was added, including the return of GDI hardware acceleration .

*: In Vista, you can use the XP driver, which happens to GDI in this setting, which I do not know. (Perhaps you can find this out by checking D3DCAPS2_CANSHARERESESURCE ?) Edit: According to this , it works with XPDM.

There are several caps cells that you can check on Win7, but I don't know if usermode can be checked.

+2
source

Source: https://habr.com/ru/post/908815/


All Articles