Skip to content
A generic post-processing injector for games and video software.
C++ C# Other
Branch: master
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
deps Add D3D12 header from Windows SDK 10.0.18362.0 May 16, 2020
res Fix mouse cursor stuck in the center of the screen in some applications May 24, 2020
setup Move setup configuration files into subdirectory May 5, 2020
source Fix keyboard state getting stuck in some applications while menu is open May 25, 2020
tools Add loading thread function that returns the actual loading error cod… Mar 19, 2020
.editorconfig Add missing editor configuration for C# source files Nov 16, 2019
.gitignore Move setup configuration files into subdirectory May 5, 2020
.gitmodules Add Vulkan Memory Allocator to improve memory management Feb 14, 2020
Common.props Add basic config editor to setup tool (#9) Nov 27, 2017
LICENSE.md Fix GitHub license detection Aug 12, 2017
README.md Add more information about ReShade FX compiler to readme Dec 11, 2019
ReShade.sln Add injector tool Nov 13, 2019
ReShade.vcxproj Fix text rendering with D2D1 not working Mar 18, 2020
ReShade.vcxproj.filters Fix text rendering with D2D1 not working Mar 18, 2020
ReShadeFX.vcxproj Fix crash in debug builds if target application uses old Visual C++ r… Jan 31, 2020
ReShadeFX.vcxproj.filters Clean up effect codebase Dec 11, 2019
ReShadeFXC.vcxproj Fix crash in debug builds if target application uses old Visual C++ r… Jan 31, 2020
ReShadeFXC.vcxproj.filters Reuse the same resource file for the standalone compiler tool Oct 28, 2018
ReShadeInject.vcxproj Add loading thread function that returns the actual loading error cod… Mar 19, 2020

README.md

ReShade

This is a generic post-processing injector for games and video software. It exposes an automated way to access both frame color and depth information and a custom shader language called ReShade FX to write effects like ambient occlusion, depth of field, color correction and more which work everywhere.

The ReShade FX shader compiler contained in this repository is standalone, so can be integrated into other projects as well. Simply add all source/effect_*.* files to your project and use it similar to the fxc example.

Building

You'll need Visual Studio 2017 or higher to build ReShade and Python for the gl3w dependency. The Vulkan SDK is required if building with Vulkan support.

  1. Clone this repository including all Git submodules
  2. Open the Visual Studio solution
  3. Select either the "32-bit" or "64-bit" target platform and build the solution (this will build ReShade and all dependencies).

After the first build, a version.h file will show up in the res directory. Change the VERSION_FULL definition inside to something matching the current release version and rebuild so that shaders from the official repository at https://github.com/crosire/reshade-shaders won't cause a version mismatch error during compilation.

A quick overview of what some of the source code files contain:

File Description
dll_log.cpp Simple file logger implementation
dll_main.cpp Main entry point and test application when building for debug
dll_resources.cpp Access to DLL resource data (e.g. built-in shaders)
effect_lexer.cpp Lexical analyzer for C-like languages
effect_parser.cpp Parser for the ReShade FX shader language
effect_preprocessor.cpp C-style preprocessor implementation
hook.cpp Wrapper around MinHook which tracks associated function pointers
hook_manager.cpp Automatic hook installation based on DLL exports
input.cpp Keyboard and mouse input management and window message queue hooks
runtime.cpp Core ReShade runtime including effect and preset management
runtime_gui.cpp Overlay GUI and everything related to that
d3d9/runtime_d3d9.cpp Effect runtime implementation for D3D9
d3d10/runtime_d3d10.cpp Effect runtime implementation for D3D10
d3d11/runtime_d3d11.cpp Effect runtime implementation for D3D11
d3d12/runtime_d3d12.cpp Effect runtime implementation for D3D12
opengl/runtime_gl.cpp Effect runtime implementation for OpenGL
vulkan/runtime_vk.cpp Effect runtime implementation for Vulkan

Contributing

Any contributions to the project are welcomed, it's recommended to use GitHub pull requests.

License

All source code in this repository is licensed under a BSD 3-clause license.

You can’t perform that action at this time.