GDI 函数 BitBlt 和 StretchBlt 在 Win32 中是否硬件加速?

发布于 2025-01-07 04:00:58 字数 148 浏览 6 评论 0原文

我似乎无法通过搜索得到明确的答案。 Win32 blitting 操作是否硬件加速(GDI,而不是 GDI+)。我不知道这些函数如何与图形驱动程序交互。是否有任何函数调用来验证此功能,例如?GetCaps?对于特定的图形设备(win32图形设备),看看这些函数是否正在接收硬件加速?

I can't seem to get a definite answer to this via searching. Are the Win32 blitting operations hardware accelerated (GDI, not GDI+). I don't know how these functions interface with the graphics driver. Is there any function call to verify this functionality, like ?GetCaps? for a specific graphics device (win32 graphics device) to see if these functions are receiving hardware acceleration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对风讲故事 2025-01-14 04:00:58

根据 , GDI 仅在 Windows 7 及以上版本上进行硬件加速。
列出了如何指定哪些操作要硬件加速。列表中包括 BitBltStretchBlt,所以是的,它们是硬件加速的,但您需要有一个支持它的系统,并且需要启用它。

According to this, GDI is only hardware accelerated on windows 7 onwards.
This lists how to specify which operations are to be hardware accelerated. included in the list is BitBlt and StretchBlt, so yes they are hardware accelerated, but you need to have a system supporting it, and you need to enable it.

无声静候 2025-01-14 04:00:58

GDI 操作是否硬件加速取决于驱动程序,但除 Vista* 之外的所有 Windows 版本都支持它。

  • Vista 添加了一个名为 Windows 显示驱动程序模型 (WDDM) 的新驱动程序模型
  • Windows 7 中添加了 WDDM v1.1,其中包括 GDI 硬件加速

*:可以在 Vista 上使用 XP 驱动程序,我不知道在该设置中 GDI 会发生什么。 (也许您可以通过检查 D3DCAPS2_CANSHARERESOURCE?)编辑:根据这个,它与 XPDM 一起使用。

有一些内核上限​​ 你可以在Win7上检查,但我不知道是否可以在用户模式下检查。

If GDI operations are hardware accelerated depends on the driver but all versions of Windows except Vista* support it.

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

*: It is possible to use a XP driver on Vista, what happens to GDI in that setup I do not know. (Maybe you can detect this by checking for D3DCAPS2_CANSHARERESOURCE ?) Edit: According to this, it works with XPDM.

There are some kernel caps you could check on Win7 but I don't know if it is possible to check in usermode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文