summaryrefslogtreecommitdiff
path: root/sc/includer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sc/includer.hpp')
-rw-r--r--sc/includer.hpp23
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