mmozeiko / build-sdl3

Automatic build of SDL3 libraries for Windows
44 stars 6 forks source link

Is SPIRV-Cross staically linked in SDL_shadercross? #8

Closed namandixit closed 55 minutes ago

namandixit commented 10 hours ago

SDL_shadercross's documentation says that:

For SPIRV translation, this library depends on SPIRV-Cross: https://github.com/KhronosGroup/SPIRV-Cross spirv-cross-c-shared.dll (or your platform's equivalent) can be obtained in the Vulkan SDK: https://vulkan.lunarg.com/

Howeevr, unlike dxcompiler.dll and dxil.dll, spirv-cross-c-shared.dll is not included in the release archive. Is it statically linked, or do we have to copy it from the Vulkan SDK as dictated in the docs?

mmozeiko commented 6 hours ago

Yes, I have SPIR-V there linked-in statically.

I have not yet investigated if it is possible to build dxil/dxcompiler statically too. I would prefer that, but API may be using dynamic library loading or some COM registration. Not exactly sure. Will check it eventually.