1. D3d Getting started
This section provides a pairD3dGraphic Programming Interface (API. Here you will find an overview of a graphic pipeline and help you achieve basicD3dFunction guide.
1.1. D3d Architecture
This section includesMicrosoftOfD3dComponents, OtherMicrosoft DirectX, The relationship between the operating system and the system hardware; these topics will be discussed below.
1.1.1. D3d Architecture Overview
This is a description of a graphic pipeline. The functionality of each block is described below. The connection contains more information.
more d3d
1.1.2. Hardware Abstraction Layer
Microsoft D3d Pass Hal (Hardware Abstraction Layer) provides device independence; Hal Is the interface specified by the device manufacturer, D3d Directly use the display hardware to work.ProgramTo avoid Hal Interaction. Application Usage D3d Expose a series of interfaces and methods instead Hal Provides a mechanism to use display devices. The device manufacturer Windows On each platform ( XP , 2000 , 98 ). 32 Bit programming. Hal It can be a part of the display drive or independent of the device drive that communicates with the drive through an interface defined by the drive manufacturer DLL .
D3d hal By the chip manufacturer, motherboard manufacturer or OEM . Hal Only implement device DependenciesCodeAnd in non-competitive execution. If the hardware does not execute a function, Hal It will not be reported as a hardware function. In addition, Hal Parameters are not verified, D3d Before calling Hal Perform parameter verification before.
At MicrosoftDirectX 9,HalThree different vertex processing modes are available: Software vertex processing, hardware vertex processing, and hybrid vertex processing on the same device. The pure device mode isHalDevice variable. The pure device type only supports hardware vertex processing and only allows applications to query a small subset of the device status. In addition, pure devices are only available on adapters with minimal capacity.
1.1.3. Overall system
Show MicrosoftD3d,GDI,HalAnd the relationship between hardware.
In, we can see that, D3d Programs and GDI The program accesses the graphics hardware through the device driver of the display card. And GDI The difference is that, D3d You can select Hal Hardware features, Hal The device provides hardware acceleration Based on the display card. You can use D3d When running, determine whether the device has this capability.
For more information about devices, see device types.