This is a pseudo-driver module that intends to improve compatibility and stability in games using Direct3D 8 for rendering by converting all API calls and low-level shaders to equivalent Direct3D 9 ones. By that it also opens those games to new possibilities from proven modding tools written for Direct3D 9, including ReShade.
You'll need Visual Studio 2013 or higher to build d3d8to9. It is recommended to install the old standalone DirectX end-user runtime, which is required for the D3DX libraries used for disassembling and assembling the shaders.
A quick overview of what some of the source code files contain:
|d3d8to9.cpp||Definition of the main D3D8 entry point
|d3d8to9_base.cpp||Implementation of the
|d3d8to9_device.cpp||Implementation of the
|d3d8types.hpp||Declaration of all used D3D8 types one would otherwise find in d3d8.h|
|lookup_table.hpp||Table to map D3D9 interface addresses to their matching D3D8 implementations|
Any contributions to the project are welcomed, it's recommended to use GitHub pull requests.
All source code in this repository is licensed under a BSD 2-clause license.