refactor GLSLExtension

This commit is contained in:
MihailRis
2025-04-03 21:57:46 +03:00
parent 1feee3a809
commit 6043ae8331
4 changed files with 71 additions and 51 deletions
+7 -1
View File
@@ -5,6 +5,7 @@
#include <vector>
#include "io/io.hpp"
#include "graphics/core/PostEffect.hpp"
class ResPaths;
@@ -25,7 +26,12 @@ public:
bool hasDefine(const std::string& name) const;
void loadHeader(const std::string& name);
std::string process(
struct ProcessingResult {
std::string code;
std::unordered_map<std::string, PostEffect::Param> params;
};
ProcessingResult process(
const io::path& file,
const std::string& source,
bool header = false