pub struct StandardShadowsLane { /* private fields */ }Expand description
Full-quality shadows: 2048² × 4-layer 2D atlas + 512² × 4-cube cube
atlas. Drives the canonical CSM / spot perspective / 6-pass point
pipeline; publishes a [khora_data::render::ShadowGpuBindings]
bundle plus per-light entries into the per-frame lane context.
Implementations§
Source§impl StandardShadowsLane
impl StandardShadowsLane
Sourcepub const ATLAS_2D_RESOLUTION: u32 = 2048
pub const ATLAS_2D_RESOLUTION: u32 = 2048
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 = 512
pub const CUBE_FACE_RESOLUTION: u32 = 512
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 StandardShadowsLane
impl Default for StandardShadowsLane
Source§fn default() -> StandardShadowsLane
fn default() -> StandardShadowsLane
Returns the “default value” for a type. Read more
Source§impl Lane for StandardShadowsLane
impl Lane for StandardShadowsLane
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 StandardShadowsLane
impl RefUnwindSafe for StandardShadowsLane
impl Send for StandardShadowsLane
impl Sync for StandardShadowsLane
impl Unpin for StandardShadowsLane
impl UnsafeUnpin for StandardShadowsLane
impl UnwindSafe for StandardShadowsLane
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