pub struct TextureSwitchState {
pub load: f32,
pub ramp: f32,
}Expand description
The source’s factors on a TextureSwitch’s thresholds, which its own runtime may move: the state a renderer
evaluates the switch in, stated by the source with what it stands for.
Fields§
§load: f32On both thresholds, from 0 to 1.
ramp: f32On the return threshold (level 1 to 0) only, from 0 to 1.
Implementations§
Source§impl TextureSwitchState
impl TextureSwitchState
Sourcepub const SETTLED: TextureSwitchState
pub const SETTLED: TextureSwitchState
Neither factor moves a threshold.
Trait Implementations§
Source§impl Clone for TextureSwitchState
impl Clone for TextureSwitchState
impl Copy for TextureSwitchState
Source§impl Debug for TextureSwitchState
impl Debug for TextureSwitchState
Source§impl PartialEq for TextureSwitchState
impl PartialEq for TextureSwitchState
Source§impl Serialize for TextureSwitchState
impl Serialize for TextureSwitchState
impl StructuralPartialEq for TextureSwitchState
Auto Trait Implementations§
impl Forget for TextureSwitchState
impl Freeze for TextureSwitchState
impl RefUnwindSafe for TextureSwitchState
impl Send for TextureSwitchState
impl Sync for TextureSwitchState
impl Unpin for TextureSwitchState
impl UnsafeUnpin for TextureSwitchState
impl UnwindSafe for TextureSwitchState
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