Shaders: a sampler used with and without comparison gets two slots #386
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!386
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/386/head"
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?
@JordanFableFur on GitHub · 2026-11-25 00:14 UTC · original
JordanFableFur:fix/static-sampler-cmp-slots→main· +24 −21 · 6 files · 1 commits · closed without mergingWhat
Static sampler slots were deduplicated by the four sampler words alone. The same words used for an ordinary sample and a comparison sample shared a slot, and the comparison use marked the slot as a comparison one: in comparison-first order the ordinary sample got a comparison handle, in ordinary-first order the earlier ordinary handle and the slot metadata finally disagreed. The DXIL validator requires the sampler kind to match the operation.
A slot is now chosen by the words and whether the use compares, so the two ways get their own slots, and a slot's kind is fixed at its first use instead of folded into the
cmp_samplersbitfield afterwards. The kind travels in the slot list (Lowered.samplersholds(words, is_comparison)), andHostShader::samplerskeeps its words-only shape for the host.Fixes #250.
Testing
Clippy
-D warningsfor both builds and the host-runnablevictory-shadertests (170) pass; the emission paths with samplers (the diff/VALU tests) are Windows+GPU-gated and covered by CI: https://github.com/JordanFableFur/victory-fork/actions/runs/45516463576AI use: written with Codex and Claude Code (GPT-5.2 Codex); reviewed and posted with my approval. No game files were used.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 00:14 UTC · original · edited 2026-11-25 00:16 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
6390a18ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@kaayzouee on GitHub · 2026-11-25 01:03 UTC · original
Duplicate of #276?
@JordanFableFur on GitHub · 2026-11-25 01:46 UTC · original
Closing — #276 fixes the same issue (#250) and was opened first, with a dxil.dll-validated test. Thanks for flagging.
Pull request closed