#[repr(u32)]pub enum ViewMode {
Lit = 0,
Unlit = 1,
Wireframe = 2,
Normals = 3,
Roughness = 4,
Occlusion = 5,
Depth = 6,
}Expand description
What the viewport’s final image shows. Lit is the shipping path; the
other modes visualize one stage of the frame.
Variants§
Lit = 0
The fully lit shipping image.
Unlit = 1
Surface base color with no lighting.
Wireframe = 2
Triangle edges only.
Normals = 3
View-space normals from the geometry prepass.
Roughness = 4
Perceptual roughness from the geometry prepass.
Occlusion = 5
Screen-space ambient occlusion.
Depth = 6
Linear view depth.
Implementations§
Source§impl ViewMode
impl ViewMode
Trait Implementations§
impl Copy for ViewMode
impl Eq for ViewMode
impl StructuralPartialEq for ViewMode
Auto Trait Implementations§
impl Freeze for ViewMode
impl RefUnwindSafe for ViewMode
impl Send for ViewMode
impl Sync for ViewMode
impl Unpin for ViewMode
impl UnsafeUnpin for ViewMode
impl UnwindSafe for ViewMode
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
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
Compare self to
key and return true if they are equal.