From 44e48ddc2785b037abd202a8d38b2ef2e8c36600 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 14 Dec 2024 23:15:34 +1100 Subject: initial commit --- sc/includer.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sc/includer.hpp (limited to 'sc/includer.hpp') 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 -- cgit v1.2.3-54-g00ecf