⎇ 72758e75ce515f355f27615671c95ecaf8c2a8bc
crates/modules/ui_engine/widgets/lapaloma-heatmap/src/lib.rs
History
Who touched what
raw
1//! `lapaloma-heatmap` — matriz `[width × height]` de `f32` → imagen.
2//!
3//! Para matrices grandes (4096² = 67 MB de pixels), encodear la
4//! imagen una vez al cambiar la data y renderear con un solo
5//! `drawImageRect` (o equivalente GPUI). Eso convierte el coste
6//! de cada frame en "blit de una textura", sub-millisecond.
7//!
8//! - **`matrix`** — `HeatmapMatrix { data: Vec<f32>, width, height,
9//! revision }`.
10//! - **`palette`** — color ramps (viridis, plasma, gray…).
11//! - **`encoder`** — convierte la matrix a un buffer ARGB para
12//! subir como textura.
13//! - **`element`** — `Element` GPUI.
14
15#![forbid(unsafe_code)]
16#![allow(dead_code)]
17
18pub mod matrix {}
19pub mod palette {}
20pub mod encoder {}
21pub mod element {}