diff options
author | quou <quou@disroot.org> | 2024-12-14 23:15:34 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-14 23:19:17 +1100 |
commit | 44e48ddc2785b037abd202a8d38b2ef2e8c36600 (patch) | |
tree | f58887ce48f7fdbf6dcca365b2a1b02a34e1b355 /sc/includer.hpp |
initial commit
Diffstat (limited to 'sc/includer.hpp')
-rw-r--r-- | sc/includer.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sc/includer.hpp b/sc/includer.hpp new file mode 100644 index 0000000..17a40fe --- /dev/null +++ b/sc/includer.hpp @@ -0,0 +1,23 @@ +#ifndef includer_hpp +#define includer_hpp + +#define max_includes 128 + +#include "glslang/glslang/Public/ShaderLang.h" + +class Includer : public glslang::TShader::Includer { +public: + virtual IncludeResult* includeSystem( + const char* header_name, + const char* includer_name, + size_t inclusion_depth + ) override; + virtual IncludeResult* includeLocal( + const char* header_name, + const char* includer_name, + size_t inclusion_depth + ) override; + virtual void releaseInclude(IncludeResult* i) override; +}; + +#endif |