summaryrefslogtreecommitdiffstats
path: root/tools/glslang/glslang.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/glslang/glslang.h')
-rw-r--r--tools/glslang/glslang.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/glslang/glslang.h b/tools/glslang/glslang.h
new file mode 100644
index 000000000..73c8a978e
--- /dev/null
+++ b/tools/glslang/glslang.h
@@ -0,0 +1,23 @@
+// glslang.h
+#ifndef GLSLANG_H_INCLUDED
+#define GLSLANG_H_INCLUDED
+
+typedef void (*glslang_OutputFunc)(char const* text, void* userData);
+
+struct glslang_CompileRequest
+{
+ char const* sourcePath;
+ char const* sourceText;
+
+ glslang_OutputFunc diagnosticFunc;
+ void* diagnosticUserData;
+
+ glslang_OutputFunc outputFunc;
+ void* outputUserData;
+
+ int slangStage;
+};
+
+typedef int (*glslang_CompileFunc)(glslang_CompileRequest* request);
+
+#endif