?/TD>
Microsoft DirectX 9.0

Device Types


HAL Device

The primary device type is the HAL device, which supports hardware accelerated rasterization and both hardware and software vertex processing. If the computer on which your application is running is equipped with a display adapter that supports Microsoft?Direct3D? your application should use it for 3-D operations. Direct3D HAL devices implement all or part of the transformation, lighting, and rasterizing modules in hardware.

Applications do not access 3-D cards directly. They call Direct3D functions and methods. Direct3D accesses the hardware through the HAL. If the computer that your application is running on supports the HAL, it will gain the best performance by using a HAL device.

To create a HAL device from C++, call the IDirect3D9::CreateDevice method, and pass the D3DDEVTYPE_HAL constant as the device type.

Note   Hardware devices cannot render to 8-bit render-target surfaces.

Reference Device

Direct3D supports an additional device type called a reference device or reference rasterizer. Unlike a software device, the reference rasterizer supports every Direct3D feature. Because these features are implemented for accuracy, rather than speed, and are implemented in software, the results are not very fast. The reference rasterizer does make use of special CPU instructions whenever it can, but it is not intended for retail applications. Use the reference rasterizer only for feature testing or demonstration purposes.

To create a reference device from C++, call the IDirect3D9::CreateDevice method, and pass the D3DDEVTYPE_REF constant as the device type.



© 2002 Microsoft Corporation. All rights reserved.