#[repr(C)]pub struct RaymarchShadowCascade {
pub cascade_idx: u32,
pub _pad: [u32; 3],
}Expand description
Cascade selector pushed at buffer(4) for the raymarch shadow-caster pipeline.
Picks shadow.light_vps[cascade_idx] in both stages. Matches
RaymarchShadowCascade in shaders/raymarch_shadow.metal. 16 bytes.
Fields§
§cascade_idx: u32Which shadow cascade is being rendered.
_pad: [u32; 3]Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for RaymarchShadowCascade
impl Clone for RaymarchShadowCascade
Source§fn clone(&self) -> RaymarchShadowCascade
fn clone(&self) -> RaymarchShadowCascade
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 RaymarchShadowCascade
impl NoUninit for RaymarchShadowCascade
Auto Trait Implementations§
impl Freeze for RaymarchShadowCascade
impl RefUnwindSafe for RaymarchShadowCascade
impl Send for RaymarchShadowCascade
impl Sync for RaymarchShadowCascade
impl Unpin for RaymarchShadowCascade
impl UnsafeUnpin for RaymarchShadowCascade
impl UnwindSafe for RaymarchShadowCascade
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