Commit 31a2ac7
Fix coverage demo launch on Windows: prepend DLL directory to PATH
The demo exe is built into build/examples/<target>/<config>/ but the
Slang runtime DLLs live in build/<config>/bin/. The Windows loader only
searches the exe's own directory, so the process aborts with
STATUS_DLL_NOT_FOUND (0xC0000135).
Derive the DLL directory from the already-located binary path and
prepend it to the child process PATH before launching the demo.
POSIX is unaffected (rpath handles DLL resolution there).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 2a6b086 commit 31a2ac7
2 files changed
Lines changed: 16 additions & 2 deletions
File tree
- examples
- shader-coverage-bvh-traversal
- shader-coverage-image-pipeline
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
188 | 195 | | |
189 | 196 | | |
190 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
| |||
0 commit comments