Skip to content

fix(gpu,shader): preserve point filtering for anisotropic-point samplers - #25

Merged
HumanlyDev merged 1 commit into
mainfrom
fix/aniso-point-sampler-filtering
Nov 26, 2026
Merged

HumanlyDev merged 1 commit into
mainfrom
fix/aniso-point-sampler-filtering

Conversation

@HumanlyDev

Copy link
Copy Markdown
Owner

Summary

  • Fix anisotropic-point (\mag == 2\ / \min == 2) sampler filtering (\�ictory-gpu/src/sampler.rs, \�ictory-shader/src/emit/sampler.rs): On RDNA2, filter mode \2\ is anisotropic point (NEAREST with anisotropy enabled) and \3\ is anisotropic bilinear (LINEAR). Previously >= 2\ promoted mode \2\ to \D3D12_FILTER_ANISOTROPIC\ (linear), causing point-sampled LUTs, G-buffers, or packed lighting/water textures to be linearly blended. Now only == 3\ enables linear anisotropic filtering.

Verification

  • \cargo test -p victory-gpu --lib sampler: 4 passed, 0 failed.
  • \cargo test -p victory-shader --lib sampler: 8 passed, 0 failed.

@HumanlyDev
HumanlyDev merged commit 46361e2 into main Nov 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant