pub struct LightData {
pub lights: Vec<GpuLight>,
pub spot_shadows: Vec<SpotShadowData>,
pub area_lights: Vec<AreaLightData>,
}Expand description
The per-scene GPU light data: the storage buffer the clustered forward pass
iterates, plus the side tables it indexes into. Kept together because
GpuLight.shadow_index indexes spot_shadows and GpuLight.data_index
indexes area_lights – invariants that would be easy to break if the three
were built independently.
Fields§
§lights: Vec<GpuLight>Every local light for the clustered forward pass.
spot_shadows: Vec<SpotShadowData>One entry per shadowed spot light.
area_lights: Vec<AreaLightData>One entry per rectangular area light.
Auto Trait Implementations§
impl Freeze for LightData
impl RefUnwindSafe for LightData
impl Send for LightData
impl Sync for LightData
impl Unpin for LightData
impl UnsafeUnpin for LightData
impl UnwindSafe for LightData
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