From a97eac202cec673a0f2e27e808cfdcdd29289c4e Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 19 Jul 2017 11:27:23 -0700 Subject: Build a dynamic library for Slang - Change the `slang` project from a static library to a dynamic one - Add some details around `slang.h` to make sure DLL export stuff is working - Make the `slangc` executable use the dynamic library - Rename the `glslang` sub-project to `slang-glslang` and move it into the main source hierarchy - This reflects the fact that it isn't a stand-alone tool, and isn't in any way a standard binary of glslang, but rather just an artifact of how Slang uses glslang --- tools/glslang/glslang.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tools/glslang/glslang.h (limited to 'tools/glslang/glslang.h') diff --git a/tools/glslang/glslang.h b/tools/glslang/glslang.h deleted file mode 100644 index f02d43882..000000000 --- a/tools/glslang/glslang.h +++ /dev/null @@ -1,33 +0,0 @@ -// glslang.h -#ifndef GLSLANG_H_INCLUDED -#define GLSLANG_H_INCLUDED - -typedef void (*glslang_OutputFunc)(void const* data, size_t size, void* userData); - -enum -{ - GLSLANG_ACTION_COMPILE_GLSL_TO_SPIRV, - GLSLANG_ACTION_DISSASSEMBLE_SPIRV, -}; - -struct glslang_CompileRequest -{ - char const* sourcePath; - - void const* inputBegin; - void const* inputEnd; - - glslang_OutputFunc diagnosticFunc; - void* diagnosticUserData; - - glslang_OutputFunc outputFunc; - void* outputUserData; - - int slangStage; - - unsigned action; -}; - -typedef int (*glslang_CompileFunc)(glslang_CompileRequest* request); - -#endif -- cgit v1.2.3