aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/post_processing/fx_compile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/post_processing/fx_compile.h')
-rw-r--r--src/video_core/post_processing/fx_compile.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/video_core/post_processing/fx_compile.h b/src/video_core/post_processing/fx_compile.h
new file mode 100644
index 0000000000..f4b70f3a2c
--- /dev/null
+++ b/src/video_core/post_processing/fx_compile.h
@@ -0,0 +1,29 @@
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#include <filesystem>
+#include <map>
+#include <string>
+#include <vector>
+
+#include "common/common_types.h"
+#include "effect_module.hpp"
+
+namespace VideoCore {
+
+struct FxCompileResult {
+ reshadefx::effect_module module;
+ std::map<std::string, std::vector<u32>> entry_points;
+ std::string error;
+
+ bool Succeeded() const {
+ return error.empty() && !entry_points.empty();
+ }
+};
+
+FxCompileResult CompileFxEffect(const std::filesystem::path& path, u32 width, u32 height,
+ u32 color_bit_depth);
+
+} // namespace VideoCore