What is the Architecture behind DirectX?
DirectX uses two drivers, the hardware abstraction layer (HAL) and the Reference Device/Reference Rasterizer (REF), to send requests to the hardware device. When DirectX is initialized, it checks the hardware to see if the hardware supports certain capabilities. If the hardware does support a certain capability, then the HAL will be used to access that hardware function; otherwise, the REF will be used to emulate the capability through software. The HAL directly uses the hardware functionality for output while the REF bypasses the hardware and implements its own functionality. Hence HAL will be much faster than REF. This architecture allows for easier expandability in future hardware.You maybe in need of the REF when your HAL is producing some weird results. Suppose you're sure your code is correct, but the result is not what you're expecting. The REF device is guaranteed to behave correctly, so you may wish to test your app on the REF device and see if the behavior is the same. If it does works in REF then there are 2 chances
- The graphics card is not supporting a feature that you assumed it does!
- A driver bug. (You can contact the driver manufacturer or Microsoft if you are dead sure :) else if it doesn't work with the REF device then it's an application bug. (In most cases it won't be a REF bug. The Direct3D team implemented the REF rasterizer in a very straightforward way that isn't prone to bugs. Although it is slow it is solid too).
Sponsored links
Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
SFTP components for .NET
Add complete SSH and SFTP support to your .NET framework application
Add complete SSH and SFTP support to your .NET framework application
3 Months Free - ASP.NET Web Hosting
3 Months Free & No Setup Fees on ASP.NET 3.5/2.0 Hosting on Windows 2008/2003 Servers ? Click Here!
3 Months Free & No Setup Fees on ASP.NET 3.5/2.0 Hosting on Windows 2008/2003 Servers ? Click Here!
PureCM Software Configuration Management
Version control and integrated issue tracking - powerful and easy to use. Get your FREE trial now!
Version control and integrated issue tracking - powerful and easy to use. Get your FREE trial now!
Virtual File System SDK
Create your own file systems in Windows and .NET applications
Create your own file systems in Windows and .NET applications
