pub struct PackedLight {
pub gpu: LightGpu,
pub bounds: BoundingSphere,
pub importance: f32,
}Expand description
A light packed for the shader, with the facts clustering needs.
Only bounded lights are packed: a light at infinity goes in
LightingUniform instead, so every record here has a sphere.
Fields§
§gpu: LightGpuThe record the shader reads.
bounds: BoundingSphereThe world-space sphere every fragment the light reaches lies in.
importance: f32What a full cell ranks by: higher survives.
Trait Implementations§
Source§impl Clone for PackedLight
impl Clone for PackedLight
impl Copy for PackedLight
Source§impl Debug for PackedLight
impl Debug for PackedLight
Source§impl PartialEq for PackedLight
impl PartialEq for PackedLight
impl StructuralPartialEq for PackedLight
Auto Trait Implementations§
impl Forget for PackedLight
impl Freeze for PackedLight
impl RefUnwindSafe for PackedLight
impl Send for PackedLight
impl Sync for PackedLight
impl Unpin for PackedLight
impl UnsafeUnpin for PackedLight
impl UnwindSafe for PackedLight
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more