fix: windows shard library builds
This commit is contained in:
parent
aa0a58d186
commit
aeee736b0f
2 changed files with 94 additions and 80 deletions
15
StandAlone/shared_glslang.cpp
Normal file
15
StandAlone/shared_glslang.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "glslang/Include/glslang_c_interface.h"
|
||||
#include "glslang/Public/resource_limits_c.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Weird issue, proobably a bad config glslang won't export the right definitions
|
||||
// unless we explicitly reference them when creating this shared library
|
||||
// Seems like it's 'per-module' though (whatever that means), since we don't need to define every function and just core SPIRV/resource/glslang functions
|
||||
glslang_initialize_process();
|
||||
glslang_default_resource();
|
||||
glslang_SPIRV_disassemble(nullptr, 0);
|
||||
glslang_finalize_process();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue