#pragma once #include "effect_module.hpp" #include #include #include #include #include #include #include namespace tf::reshade { struct FxCompileOptions { unsigned width, height; unsigned reshade_version; unsigned color_space, color_format, color_bit_depth; // ReShade buffer macro values }; struct FxShader { std::string name; reshadefx::shader_type stage; std::vector spirv; }; struct FxEffect { reshadefx::effect_module module; std::vector shaders; }; using FxDefinitions = std::vector>; // The caller supplies the shader roots. Preprocessing confines source and includes to these roots. std::optional compile_fx(const std::filesystem::path& source, std::span include_paths, const FxCompileOptions& options, std::string& diagnostics, const FxDefinitions& definitions = {}); std::optional compile_builtin_fx(std::string source, const FxCompileOptions& options, std::string& diagnostics, const std::filesystem::path& name); } // namespace tf::reshade