Every native platform now runs on the HAL (makepad-hal) alone: macOS and iOS/tvOS on Metal, Windows on D3D11 (with device-loss recovery), Linux on Vulkan (X11, Wayland and direct KMS, multi-GPU laptops with per-output modes, mirror/extended arrangements and pacing) plus a GLES backend, and Android on Vulkan with media, camera, network, haptics and file access on the HAL. The old per-OS backends, the hal cfg and OpenHarmony are gone. GPU memory: the HAL reads the device budget, keeps a UI reserve and raises GpuPressure; failed allocations wait for room. One font service per host, a frame profiler, held events for hidden views, automation for tests. Our own generated Vulkan, Wayland and Windows bindings replace vendored ones. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
13 lines
443 B
Rust
13 lines
443 B
Rust
#[path = "../examples/gen_unroll.rs"]
|
|
#[allow(dead_code)]
|
|
mod gen_unroll;
|
|
|
|
#[test]
|
|
fn checked_in_unroll_matches_generator() {
|
|
let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("src").join("unroll.rs");
|
|
let checked_in = std::fs::read_to_string(&path).unwrap();
|
|
assert!(
|
|
checked_in == gen_unroll::generate(),
|
|
"src/unroll.rs is stale: run `cargo run --release -p crunchy --example gen_unroll`"
|
|
);
|
|
}
|