mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor GLSLExtension
This commit is contained in:
parent
1feee3a809
commit
6043ae8331
4 changed files with 71 additions and 51 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue