Tags: nongio/layers
Tags
Rendering optimizations and error propagation (#14) * feat: propagate layer errors instead of panicking Add LayerError::StaleNode returned from append_layer, prepend_layer, add_layer_to_positioned, add_sublayer, prepend_sublayer instead of panicking via catch_unwind or hitting indextree directly. - New src/layers/error.rs with LayerError enum - Engine::append_layer and prepend_layer check both child and parent node liveness before mutating the scene tree - LayersEngine wrapper methods return Result<(), LayerError> - Layer::add_sublayer / prepend_sublayer return Result<(), LayerError> - build_layer_tree logs a warning on reattach failure instead of panicking Callers can now handle stale handles gracefully (log, skip, recover) rather than crashing with an indextree freed-node panic.
Rendering optimizations and error propagation (#14) * feat: propagate layer errors instead of panicking Add LayerError::StaleNode returned from append_layer, prepend_layer, add_layer_to_positioned, add_sublayer, prepend_sublayer instead of panicking via catch_unwind or hitting indextree directly. - New src/layers/error.rs with LayerError enum - Engine::append_layer and prepend_layer check both child and parent node liveness before mutating the scene tree - LayersEngine wrapper methods return Result<(), LayerError> - Layer::add_sublayer / prepend_sublayer return Result<(), LayerError> - build_layer_tree logs a warning on reattach failure instead of panicking Callers can now handle stale handles gracefully (log, skip, recover) rather than crashing with an indextree freed-node panic.
PreviousNext