refactor GLSLExtension.cpp & add 'param' shader preprocessor directive & add PostEffect class (WIP)

This commit is contained in:
MihailRis
2025-04-03 21:46:12 +03:00
parent 531334f059
commit 1feee3a809
8 changed files with 263 additions and 97 deletions
+4 -1
View File
@@ -8,7 +8,9 @@ class BasicParser {
using StringT = std::basic_string<CharT>;
using StringViewT = std::basic_string_view<CharT>;
void skipWhitespaceBasic(bool newline = true);
void skipWhitespaceHashComment(bool newline = true);
void skipWhitespaceCLikeComment(bool newline = true);
protected:
std::string_view filename;
StringViewT source;
@@ -16,6 +18,7 @@ protected:
uint line = 1;
uint linestart = 0;
bool hashComment = false;
bool clikeComment = false;
void skipWhitespace(bool newline = true);
void skip(size_t n);
@@ -35,7 +38,7 @@ protected:
StringT parseString(CharT chr, bool closeRequired = true);
parsing_error error(const std::string& message);
public:
StringViewT readUntil(CharT c);
StringViewT readUntil(StringViewT s, bool nothrow);
StringViewT readUntilWhitespace();