pub struct NoiseTexsizes {
pub noise_lq: [f32; 4],
pub noise_mq: [f32; 4],
pub noise_hq: [f32; 4],
pub noisevol_lq: [f32; 4],
pub noisevol_hq: [f32; 4],
}Expand description
texsize_<name> values for every noise texture in the pack. Real MD2
presets read these as plain vec4<f32> and the values never change after
init (the textures are not resized), so we compute them once and emit
them as WGSL constants in the comp wrapper.
Fields§
§noise_lq: [f32; 4]§noise_mq: [f32; 4]§noise_hq: [f32; 4]§noisevol_lq: [f32; 4]§noisevol_hq: [f32; 4]Trait Implementations§
Source§impl Clone for NoiseTexsizes
impl Clone for NoiseTexsizes
Source§fn clone(&self) -> NoiseTexsizes
fn clone(&self) -> NoiseTexsizes
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 NoiseTexsizes
impl Debug for NoiseTexsizes
impl Copy for NoiseTexsizes
Auto Trait Implementations§
impl Freeze for NoiseTexsizes
impl RefUnwindSafe for NoiseTexsizes
impl Send for NoiseTexsizes
impl Sync for NoiseTexsizes
impl Unpin for NoiseTexsizes
impl UnwindSafe for NoiseTexsizes
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