gpu(native): preserve supported dynamic sampler border colors #177
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!177
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/177/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?
@evan-kolberg on GitHub · 2026-11-26 23:13 UTC · original
evan-kolberg:fix/native-dynamic-sampler-border→main· +216 −15 · 6 files · 1 commits · merged 2026-11-26 23:58 UTCNative
CreateSamplerXnow preserves border addressing for Metal’s transparent black, opaque black, and opaque white. Custom border colors retain the existing edge-clamp fallback. This follows the static-sampler mapping from sys-skye’s #91 at517d52d3.On an Apple M4 Pro with Metal API Validation, a standalone generated green 2×2 texture matched all 20 RGBA8 samples. Outside U, dynamic border samplers returned
(255,255,255,255),(0,0,0,255), and(0,0,0,0)for white, opaque black, and transparent black. In-bounds and edge-clamp samples stayed green and matched an independently constructed legacy edge clamp. Four dynamic cache keys produced distinct Metal sampler IDs, and repeat lookups reused them.Ten CPU sampler and descriptor controls and five existing RTV tests passed. The asset policy and a Windows-target compile with portable BLAKE3 also passed. The GPU result covers the standalone generated Metal draw. I used Codex to implement and verify these changes.
@LakshanSivakumar on GitHub · 2026-11-26 23:58 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!