#[repr(C)]pub struct PointLightData {
pub pos: Vec3f,
pub radius: f32,
pub colour: Vec4f,
pub shadow_map_info: ShadowMapInfo,
}
Expand description
GPU friendly structure for point lights
Fields§
§pos: Vec3f
§radius: f32
§colour: Vec4f
§shadow_map_info: ShadowMapInfo
Trait Implementations§
Source§impl Clone for PointLightData
impl Clone for PointLightData
Source§fn clone(&self) -> PointLightData
fn clone(&self) -> PointLightData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PointLightData
impl RefUnwindSafe for PointLightData
impl Send for PointLightData
impl Sync for PointLightData
impl Unpin for PointLightData
impl UnwindSafe for PointLightData
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