summaryrefslogtreecommitdiff
path: root/sc/includer.hpp
blob: 17a40fe83fea2e2bb97c67bcd0726412fa8ee337 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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