pub struct LowResShadowsLane { /* private fields */ }Expand description
Low-resolution shadows: 512² × 4-layer 2D atlas + 128² × 4-cube cube
atlas. Same algorithm and output types as
super::StandardShadowsLane; just lower-resolution textures —
VRAM ≈ 1.5 + 0.25 MiB instead of 64 + 24 MiB.
Implementations§
Source§impl LowResShadowsLane
impl LowResShadowsLane
Sourcepub const ATLAS_2D_RESOLUTION: u32 = 512
pub const ATLAS_2D_RESOLUTION: u32 = 512
2D depth atlas resolution (per layer).
Sourcepub const ATLAS_2D_MAX_LIGHTS: u32 = 4
pub const ATLAS_2D_MAX_LIGHTS: u32 = 4
Number of directional / spot shadow casters per frame.
Sourcepub const CUBE_FACE_RESOLUTION: u32 = 128
pub const CUBE_FACE_RESOLUTION: u32 = 128
Cube atlas per-face resolution.
Sourcepub const CUBE_MAX_LIGHTS: u32 = 4
pub const CUBE_MAX_LIGHTS: u32 = 4
Number of point shadow casters per frame.
Trait Implementations§
Source§impl Default for LowResShadowsLane
impl Default for LowResShadowsLane
Source§fn default() -> LowResShadowsLane
fn default() -> LowResShadowsLane
Returns the “default value” for a type. Read more
Source§impl Lane for LowResShadowsLane
impl Lane for LowResShadowsLane
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 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
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.
Auto Trait Implementations§
impl !Freeze for LowResShadowsLane
impl RefUnwindSafe for LowResShadowsLane
impl Send for LowResShadowsLane
impl Sync for LowResShadowsLane
impl Unpin for LowResShadowsLane
impl UnsafeUnpin for LowResShadowsLane
impl UnwindSafe for LowResShadowsLane
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