pub enum BakeAction {
Idle,
StartNext,
RenderFace,
StartPrefilter,
PrefilterMip,
Install,
}Expand description
What the renderer should do this frame to advance the asynchronous bake. The
renderer maps each variant to a side effect: StartNext builds the next
placement’s capture buffers + targets (no face submitted yet), RenderFace
submits one cube face (the six are spread one-per-frame so no single frame
pays the whole capture), StartPrefilter releases the capture’s draw
resources and builds the probe cube plus the capture pyramid the convolution
reads, PrefilterMip dispatches one destination mip’s convolution, Install
publishes the finished cube and advances the queue, Idle does nothing.
Variants§
Idle
Nothing to do this frame.
StartNext
Begin the next queued probe.
RenderFace
Render one cube face.
StartPrefilter
Move a finished capture into the convolution, building its pyramid.
PrefilterMip
Convolve one destination mip of the probe cube.
Install
Install the convolved cube into the probe pool.
Trait Implementations§
Source§impl Clone for BakeAction
impl Clone for BakeAction
Source§fn clone(&self) -> BakeAction
fn clone(&self) -> BakeAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BakeAction
Source§impl Debug for BakeAction
impl Debug for BakeAction
impl Eq for BakeAction
Source§impl PartialEq for BakeAction
impl PartialEq for BakeAction
impl StructuralPartialEq for BakeAction
Auto Trait Implementations§
impl Freeze for BakeAction
impl RefUnwindSafe for BakeAction
impl Send for BakeAction
impl Sync for BakeAction
impl Unpin for BakeAction
impl UnsafeUnpin for BakeAction
impl UnwindSafe for BakeAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.