Struct ShadowGpuBindings
pub struct ShadowGpuBindings {
pub atlas_2d: TextureViewId,
pub atlas_cube: TextureViewId,
pub sampler: SamplerId,
}Expand description
Per-frame GPU resources shadow strategies publish for lit lanes.
Lit lanes treat this opaquely: they pass it to
fill_shadow_bind_group_entries without inspecting fields. Which
concrete strategy filled it (StandardShadowsLane,
LowResShadowsLane, …) is invisible at this seam.
Fields§
§atlas_2d: TextureViewId2D depth-array atlas view (directional / spot lights).
atlas_cube: TextureViewIdCube-array depth atlas view (point lights).
sampler: SamplerIdComparison sampler used by both atlases.
Trait Implementations§
§impl Clone for ShadowGpuBindings
impl Clone for ShadowGpuBindings
§fn clone(&self) -> ShadowGpuBindings
fn clone(&self) -> ShadowGpuBindings
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 more§impl Debug for ShadowGpuBindings
impl Debug for ShadowGpuBindings
impl Copy for ShadowGpuBindings
Auto Trait Implementations§
impl Freeze for ShadowGpuBindings
impl RefUnwindSafe for ShadowGpuBindings
impl Send for ShadowGpuBindings
impl Sync for ShadowGpuBindings
impl Unpin for ShadowGpuBindings
impl UnsafeUnpin for ShadowGpuBindings
impl UnwindSafe for ShadowGpuBindings
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