Struct SpotPointShadowAtlasSlot
#[repr(C)]pub struct SpotPointShadowAtlasSlot {
pub light_view_projection: [[f32; 4]; 4],
pub atlas_uv_rect: [f32; 4],
pub light_and_bias_params: [f32; 4],
}Expand description
Tile slot in a local spot/point light shadow atlas.
Fields§
§light_view_projection: [[f32; 4]; 4]§atlas_uv_rect: [f32; 4]Normalized UV rect (u_offset, v_offset, u_scale, v_scale) within the shadow atlas.
light_and_bias_params: [f32; 4]x = light_index, y = face_index (0 for spot, 0..5 for point cubemap), z = bias, w = active (1.0/0.0).
Trait Implementations§
§impl Clone for SpotPointShadowAtlasSlot
impl Clone for SpotPointShadowAtlasSlot
§fn clone(&self) -> SpotPointShadowAtlasSlot
fn clone(&self) -> SpotPointShadowAtlasSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpotPointShadowAtlasSlot
§impl Debug for SpotPointShadowAtlasSlot
impl Debug for SpotPointShadowAtlasSlot
§impl PartialEq for SpotPointShadowAtlasSlot
impl PartialEq for SpotPointShadowAtlasSlot
impl Pod for SpotPointShadowAtlasSlot
impl StructuralPartialEq for SpotPointShadowAtlasSlot
Auto Trait Implementations§
impl Freeze for SpotPointShadowAtlasSlot
impl RefUnwindSafe for SpotPointShadowAtlasSlot
impl Send for SpotPointShadowAtlasSlot
impl Sync for SpotPointShadowAtlasSlot
impl Unpin for SpotPointShadowAtlasSlot
impl UnsafeUnpin for SpotPointShadowAtlasSlot
impl UnwindSafe for SpotPointShadowAtlasSlot
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
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<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.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> ⓘ
impl<T> Interleave for Twhere
T: Pod,
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