tick system, AVX2 UTF-8 decoder, uh faster in general

This commit is contained in:
Zacharias-Brohn
2025-12-22 00:22:55 +01:00
parent f6a5e23f3d
commit 73b52ab341
30 changed files with 10231 additions and 5210 deletions
+3 -3
View File
@@ -103,7 +103,7 @@ struct ColorTable {
// ═══════════════════════════════════════════════════════════════════════════════
@group(0) @binding(0)
var atlas_texture: texture_2d_array<f32>;
var atlas_textures: binding_array<texture_2d<f32>>;
@group(0) @binding(1)
var atlas_sampler: sampler;
@@ -312,8 +312,8 @@ fn fs_statusline(in: VertexOutput) -> @location(0) vec4<f32> {
return in.bg_color;
}
// Sample glyph from atlas (using layer for texture array)
let glyph_sample = textureSample(atlas_texture, atlas_sampler, in.uv, in.glyph_layer);
// Sample glyph from atlas (using layer to index texture array)
let glyph_sample = textureSample(atlas_textures[in.glyph_layer], atlas_sampler, in.uv);
if in.is_colored_glyph == 1u {
// Colored glyph (emoji) - use atlas color directly