fix(Metal): fix crunchy appearance of constrained glyphs

We can't use nearest neighbor filtering for sampling from the atlas
because we might not actually be doing pixel perfect sampling if the
glyph has been constrained. This will change in the future, but this
will have to be set to linear for now.
pull/6914/head
Qwerasd 2025-03-25 20:57:08 -06:00
parent bcff4e18f4
commit 6f9a362a4d
1 changed files with 5 additions and 1 deletions

View File

@ -499,7 +499,11 @@ fragment float4 cell_text_fragment(
constexpr sampler textureSampler(
coord::pixel,
address::clamp_to_edge,
filter::nearest
// TODO(qwerasd): This can be changed back to filter::nearest when
// we move the constraint logic out of the GPU code
// which should once again guarantee pixel perfect
// sizing.
filter::linear
);
switch (in.mode) {