← back

yum-slop/modular_slang

write individual HLSL modules/libraries in slang

git clone https://git.yummers.dev/yum-slop/modular_slang

yumupdate pathbff603d

v1.0.0
1 folder7 files

files

Scripts/Editor/
.gitignore16 B
CMakeLists.txt1.5 KiB
README.md1.1 KiB
build.ps1586 B
example.slang2.2 KiB
main.cc16.7 KiB
slang.patch3.4 KiB

modular slang

the idea here is just to make something like slangc.exe, but which treats entrypoints like regular functions.

basics and gotchas

usage

build instructions

git clone https://github.com/shader-slang/slang
cd slang
git checkout 8f499fbe9baf68ef880da2ffe4812fbed1e5c1fa
patch -p1 <../slang.patch
git submodule update --init --recursive -j 32
# wait, the previous command takes a while
mkdir build
cd build
# run this part in powershell, from ./slang/build
cmake.exe ..
cmake.exe --build . -j 32 --config Release
# the previous command will take a long fucking time
# switch back to top level of repo
cd ../..
# do this in wsl2 or powershell. Showing wsl2/bash syntax.
powershell.exe ./build.ps1 && ./dist/modular_slang.exe ./demo.slang