pub struct ShadowMaps {
pub directional_maps: [Option<Texture2d>; 4],
pub point_maps: [Option<Texture2d>; 4],
pub light_space_matrices: [[[f32; 4]; 4]; 4],
pub point_far_planes: [f32; 4],
pub resolution: u32,
pub dir_depth_rb: DepthRenderBuffer,
pub point_depth_rb: DepthRenderBuffer,
pub dummy: Texture2d,
}Fields§
§directional_maps: [Option<Texture2d>; 4]§point_maps: [Option<Texture2d>; 4]§light_space_matrices: [[[f32; 4]; 4]; 4]§point_far_planes: [f32; 4]§resolution: u32§dir_depth_rb: DepthRenderBuffer§point_depth_rb: DepthRenderBuffer§dummy: Texture2dImplementations§
Source§impl ShadowMaps
impl ShadowMaps
Auto Trait Implementations§
impl !Freeze for ShadowMaps
impl !RefUnwindSafe for ShadowMaps
impl !Send for ShadowMaps
impl !Sync for ShadowMaps
impl !UnwindSafe for ShadowMaps
impl Unpin for ShadowMaps
impl UnsafeUnpin for ShadowMaps
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.