pub struct LightGridDesc<'a> {
pub label: Option<&'a str>,
pub frames: usize,
pub lights: u32,
pub froxels: u32,
pub stats: &'a [BufferHandle],
}Expand description
How large a LightGrid is.
Fields§
§label: Option<&'a str>Debug name; every buffer is named after it.
frames: usizeHow many frames in flight, and so how long every ring here is.
lights: u32Rows the light list holds.
froxels: u32Froxels the grid holds, which is what Grid::for_frame is asked to fit
a frame under. FROXEL_CAPACITY unless a test wants a smaller one.
stats: &'a [BufferHandle]The culling-statistics ring the overflow counter is a word of — one
buffer per frame in flight, the one
DrawGen::visible_count hands
out. Written by this pass and zeroed by the clearing dispatch that runs
ahead of it.
Trait Implementations§
Source§impl<'a> Clone for LightGridDesc<'a>
impl<'a> Clone for LightGridDesc<'a>
impl<'a> Copy for LightGridDesc<'a>
Auto Trait Implementations§
impl<'a> Forget for LightGridDesc<'a>
impl<'a> Freeze for LightGridDesc<'a>
impl<'a> Move for LightGridDesc<'a>
impl<'a> RefUnwindSafe for LightGridDesc<'a>
impl<'a> Send for LightGridDesc<'a>
impl<'a> Sync for LightGridDesc<'a>
impl<'a> Unpin for LightGridDesc<'a>
impl<'a> UnsafeUnpin for LightGridDesc<'a>
impl<'a> UnwindSafe for LightGridDesc<'a>
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