下面的插图显示了 Microsoft® Direct3D®、 Microsoft Windows® 图形设备接口(GDI)、硬件抽象层(HAL)和硬件之间的关系。
The following diagram shows the relationships between Microsoft® Direct3D®, the Microsoft Windows® Graphics Device Interface (GDI), the hardware abstraction layer (HAL), and the hardware.
正如上面的插图所示,Direct3D 应用程序在 GDI 应用程序旁边,他们都可以通过显示设备驱动访问图形设备。与 GDI 不同,在 HAL 设备确定后,Direct3D 可以利用硬件特性。HAL 设备提供了基于显卡特性的硬件加速。您可以在程序运行过程中,通过 Direct3D 提供的方法来检查设备是否能完成相关的操作。
As the preceding diagram shows, Direct3D applications exist alongside GDI applications and both have access to the graphics hardware through the device driver for the graphics card. Unlike GDI, Direct3D can take advantage of hardware features when a HAL device is selected. HAL devices provide hardware acceleration based on the feature set supported by the graphics card. You are provided with a Direct3D method to determine at run time if a device is capable of the task.
查看更多受 Direct3D 支持的设备,请查看设备类型。
For more information about devices supported by Direct3D, see Device Types.