pub struct TextureMipDebugConfig {
pub enabled: bool,
pub max_levels: u32,
pub level_colors: Vec<[f32; 4]>,
pub opacity: f32,
pub show_numbers: bool,
}Expand description
Mip level debug configuration.
Fields§
§enabled: boolEnable mip debug view.
max_levels: u32Maximum mip levels to distinguish (up to 16).
level_colors: Vec<[f32; 4]>Colors per mip level [R, G, B, A].
opacity: f32Overlay opacity 0..=1.
show_numbers: boolShow mip level number as text.
Trait Implementations§
Source§impl Clone for TextureMipDebugConfig
impl Clone for TextureMipDebugConfig
Source§fn clone(&self) -> TextureMipDebugConfig
fn clone(&self) -> TextureMipDebugConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureMipDebugConfig
impl Debug for TextureMipDebugConfig
Auto Trait Implementations§
impl Freeze for TextureMipDebugConfig
impl RefUnwindSafe for TextureMipDebugConfig
impl Send for TextureMipDebugConfig
impl Sync for TextureMipDebugConfig
impl Unpin for TextureMipDebugConfig
impl UnsafeUnpin for TextureMipDebugConfig
impl UnwindSafe for TextureMipDebugConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more