#pragma once #include "fx_compile.h" #include #include namespace tf::reshade { struct FxTechnique { std::string name, shader; bool operator==(const FxTechnique&) const = default; }; using FxPresetSection = std::map>; struct FxPreset { bool linear_hdr = false; std::vector techniques; FxDefinitions definitions; std::map> shader_options; }; std::optional parse_preset(std::string_view text, std::string& diagnostics); std::optional load_preset(const std::filesystem::path& root, const std::filesystem::path& name, std::string& diagnostics); FxDefinitions preset_definitions(const FxPreset& preset, std::string_view shader); } // namespace tf::reshade