PostProcessing: Add ReShade .fx shader support

This commit is contained in:
Stenzek
2023-08-13 23:23:54 +10:00
parent 288757ca9a
commit 8a40c7bf94
9 changed files with 1522 additions and 34 deletions

View File

@ -16,6 +16,7 @@ add_subdirectory(soundtouch)
add_subdirectory(googletest)
add_subdirectory(cpuinfo)
add_subdirectory(fast_float)
add_subdirectory(reshadefx)
if(ENABLE_CUBEB)
add_subdirectory(cubeb)

View File

@ -632,9 +632,9 @@ private:
const unsigned int texture_dimension = info.type.texture_dimension();
code += "Texture" + std::to_string(texture_dimension) + "D<";
write_texture_format(code, tex_info.format);
code += "> __" + info.unique_name + "_t : register(t" + std::to_string(info.binding) + "); \n";
code += "> __" + info.unique_name + "_t : register( t0); \n";
code += "SamplerState __" + info.unique_name + "_s : register(s" + std::to_string(info.binding) + ");\n";
code += "SamplerState __" + info.unique_name + "_s : register( s0);\n";
code += "static const ";
write_type(code, info.type);