shader-slang / slang

Making it easier to work with shaders
MIT License
2.05k stars 175 forks source link

Integrate SLANG cmake into https://github.com/shader-slang/VK-GL-CTS #3690

Open pmistryNV opened 6 months ago

pmistryNV commented 6 months ago

Presently the way SLANG is ingrated into CTS

  1. fetch the slang sources by running": fetch external/fetch_sources.py
  2. go into external/slang/src
  3. git submodule update --init
  4. premake.bat vs2019 --deps=true**

Presently there is a bare bone cmake : https://github.com/shader-slang/VK-GL-CTS/blob/main/external/slang/CMakeLists.txt

As part of integration into VK-GL-CTS, we should be able to build slang.dll,slang-glslang.dll and test-sever.exe Presently SLANG uses it's own version of SPIRV Tools and glslang, this causes compile time link failure when i completely try to integrate the project into VK-GL-CTS.

pmistryNV commented 6 months ago

@csyonghe @expipiplus1

csyonghe commented 6 months ago

@expipiplus1 We should be able to use the CTS fork @pmistryNV created as a verification for our cmake setup.

csyonghe commented 6 months ago

The criteria for closing this issue is when https://github.com/shader-slang/VK-GL-CTS/ is able to use slang as a submodule.