pub struct PlanarAssignment {
pub slots: Vec<Option<usize>>,
pub representatives: Vec<[f32; 4]>,
}Expand description
The result of grouping a list of reflection planes into a bounded number of
distinct slots: slots[i] is the slot a plane maps to (None when the budget
is exhausted by earlier distinct planes, i.e. it falls back to the probe cube),
and representatives is the deduplicated plane per slot (representatives.len()
is the number of mirror renders the frame needs).
Fields§
§slots: Vec<Option<usize>>Per-reflector plane slot, None when the reflector fell back to a probe.
representatives: Vec<[f32; 4]>One representative plane per assigned slot.
Auto Trait Implementations§
impl Freeze for PlanarAssignment
impl RefUnwindSafe for PlanarAssignment
impl Send for PlanarAssignment
impl Sync for PlanarAssignment
impl Unpin for PlanarAssignment
impl UnsafeUnpin for PlanarAssignment
impl UnwindSafe for PlanarAssignment
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