[pr-fix][shaders] DARNER_STRICT_JOINS and DARNER_MESH_OUTPUT_STRICT are on only at 1, as the README says #422
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/strict-switches-only-at-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
.is_some()(crates/darner-shader/src/emit/lower.rs:5840and:15033). The README documents both as1 = on. SoDARNER_STRICT_JOINS=0, typed to turn it off, turns it on: by the code's own count about 40 shaders (vehicle paint, foliage) then stop drawing. Both names are inKEYED, so the value also changes the shader cache key, and every shader is translated again.Both now read
is_some_and(|v| v == "1"), which is whatasked_for!means in darner-gpu. The comment at:15027says=1too.This re-keys every user's shader cache once. It is a code change in darner-shader, so
DARNER_TRANSLATORchanges. Since34b0ba77, the pipeline library another translator wrote is no longer loaded (made_by_another_build,crates/darner-gpu/src/pipeline/library.rs:695), so each user also starts an empty library. And until #264 lands, the preload's done marks are lost too (#128). It may be best merged together with another translator change, such as #303 or #304, so users pay for one re-translation instead of two.How it was tested
c75b8c58(onmainf3840d73)cargo clippy -p darner-shader --lib --locked -- -D warnings: clean.=0and other values than1change, from on to off.lower/tests.rsis#[ignore]).Checklist
main.docs/asset-policy.md.Checked for overlap
lower.rs. Withgit merge-treeagainst their current heads, none gets a conflict from this branch: #31, #32, #35, #223, #292, #295, #304, #312, #347, #394 and #408 merge cleanly, and the others already conflict withmainin the same places as before.Checked with AI assistance (Claude Code).
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.