Files
Triforce-Source/gpu/vk/reshade/fx_compile.h
ruckus7382sfgsgdf 4fa4f9188b Triforce v0.8.0
Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
2026-11-25 10:21:32 -06:00

43 lines
1.3 KiB
C++

#pragma once
#include "effect_module.hpp"
#include <cstdint>
#include <filesystem>
#include <optional>
#include <span>
#include <string>
#include <utility>
#include <vector>
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<uint32_t> spirv;
};
struct FxEffect {
reshadefx::effect_module module;
std::vector<FxShader> shaders;
};
using FxDefinitions = std::vector<std::pair<std::string, std::string>>;
// The caller supplies the shader roots. Preprocessing confines source and includes to these roots.
std::optional<FxEffect> compile_fx(const std::filesystem::path& source,
std::span<const std::filesystem::path> include_paths,
const FxCompileOptions& options, std::string& diagnostics,
const FxDefinitions& definitions = {});
std::optional<FxEffect> compile_builtin_fx(std::string source, const FxCompileOptions& options,
std::string& diagnostics, const std::filesystem::path& name);
} // namespace tf::reshade