2d5b7a37e8
- Introduced `SharedCompositePixels` for stable full-canvas pixel storage, enabling efficient pipeline creation and recovery. - Added `TextureUpdate` struct for tightly packed dirty rectangle uploads, reducing unnecessary data copying. - Refactored `upload_dirty_region` to utilize `TextureUpdate`, improving performance by eliminating full buffer scans. - Implemented `encode_selection_texture` to generate an encoded R8 selection mask, optimizing selection rendering. - Updated shader to sample selection texture only once, reducing GPU workload. - Added comprehensive tests for texture updates, selection encoding, and performance diagnostics. - Documented design decisions and validation sequences to ensure future performance stability.
20 lines
405 B
TOML
20 lines
405 B
TOML
[package]
|
|
name = "hcie-brush-engine"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
rand = "0.8"
|
|
rand_distr = "0.4"
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
[lib]
|
|
crate-type = ["staticlib", "rlib"]
|
|
|
|
[dev-dependencies]
|
|
rstest = "0.23"
|
|
proptest = "1.5"
|
|
approx = "0.5"
|
|
egui = "0.34"
|
|
eframe = { version = "0.34", default-features = false, features = ["default_fonts", "glow", "x11"] }
|