diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-09 11:34:21 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-09 13:44:59 -0700 |
| commit | fcf83dbf9effab3bd98bad2b83b2468b7eb05cfd (patch) | |
| tree | 41047c94883b86ec085a81597391ce3ef557cd43 /tools/glslang/glslang.h | |
| parent | 52e8d4b9a27ab0060f874c3a63ab531847be35c0 (diff) | |
Initial import of code.
Diffstat (limited to 'tools/glslang/glslang.h')
| -rw-r--r-- | tools/glslang/glslang.h | 23 |
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 |
