pub struct UiRenderLane { /* private fields */ }Expand description
A lane designed for high-performance UI rendering using instancing.
All GPU handles are initialised exactly once in init_gpu_resources
and only read on subsequent frames, so each is held in a OnceLock
for lock-free hot-path reads (the underlying buffer/texture contents
are mutated per-frame at the GPU level — only the abstract IDs are
stored here).
Implementations§
Source§impl UiRenderLane
impl UiRenderLane
Trait Implementations§
Source§impl Default for UiRenderLane
impl Default for UiRenderLane
Source§impl Lane for UiRenderLane
impl Lane for UiRenderLane
Source§fn strategy_name(&self) -> &'static str
fn strategy_name(&self) -> &'static str
Human-readable name identifying this lane’s strategy. Read more
Source§fn estimate_cost(&self, _ctx: &LaneContext) -> f32
fn estimate_cost(&self, _ctx: &LaneContext) -> f32
Estimated computational cost of running this lane. Read more
Source§fn on_initialize(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
fn on_initialize(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
Called once when the lane is registered or the underlying context resets. Read more
Source§fn execute(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
fn execute(&self, ctx: &mut LaneContext) -> Result<(), LaneError>
Main execution entry point — called each frame/tick by the owning agent. Read more
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type (mutable) for type-specific operations.
§fn on_shutdown(&self, _ctx: &mut LaneContext)
fn on_shutdown(&self, _ctx: &mut LaneContext)
Called when the lane is being destroyed or the context is shutting down. Read more
Auto Trait Implementations§
impl !Freeze for UiRenderLane
impl RefUnwindSafe for UiRenderLane
impl Send for UiRenderLane
impl Sync for UiRenderLane
impl Unpin for UiRenderLane
impl UnsafeUnpin for UiRenderLane
impl UnwindSafe for UiRenderLane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more