shader-replace: target\release\larp.exe does not find target\shader-replace #585

Open
opened 2026-12-06 03:23:44 +00:00 by github-bot · 0 comments
Owner

@⁠eipastel on GitHub · 2026-12-06 03:20 UTC · original

cargo build --release -p larp writes target\release\larp.exe and compiles the replacement shaders into target\shader-replace, but that exe does not find them. With LARP_SHADER_REPLACE unset, larp run stops at once:

Error: no replacement shaders: none of these folders exists: <repo>\target\release\shader-replace, <repo>\shader-replace (LARP_SHADER_REPLACE=<folder> names another)

folder() in crates/larp-gpu/src/shader_replace.rs looks at <exe folder>\shader-replace and <exe folder>\..\..\shader-replace. The second one is right for target\<target>\<profile>\larp.exe (a --target build), but the documented build has no <target> level, so it lands on <repo>\shader-replace.

Seen on main 459db13, Windows 11 build 26300.

Written with AI assistance (Claude Code).

**@⁠eipastel** on GitHub · 2026-12-06 03:20 UTC · [original](https://github.com/gamingwithhomie/larp/issues/585) `cargo build --release -p larp` writes `target\release\larp.exe` and compiles the replacement shaders into `target\shader-replace`, but that exe does not find them. With `LARP_SHADER_REPLACE` unset, `larp run` stops at once: ``` Error: no replacement shaders: none of these folders exists: <repo>\target\release\shader-replace, <repo>\shader-replace (LARP_SHADER_REPLACE=<folder> names another) ``` `folder()` in `crates/larp-gpu/src/shader_replace.rs` looks at `<exe folder>\shader-replace` and `<exe folder>\..\..\shader-replace`. The second one is right for `target\<target>\<profile>\larp.exe` (a `--target` build), but the documented build has no `<target>` level, so it lands on `<repo>\shader-replace`. Seen on `main` 459db13, Windows 11 build 26300. Written with AI assistance (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 03:23:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#585
No description provided.