Skip to main content

Md2OldPass

Struct Md2OldPass 

Source
pub struct Md2OldPass {
    pub q: [f32; 32],
    pub blur: BlurParams,
    pub ext: ShaderExt,
    pub warp_random: Option<PassRandom>,
    pub comp_random: Option<PassRandom>,
}
Expand description

What the old state contributes to the shader passes of a blend frame (its ApplyShaderParams(.., m_pOldState) inputs that differ from the new state’s: q1..q32, blur range, rand_preset / rot_*).

Fields§

§q: [f32; 32]

m_pOldState->var_pf_q[0..32] after its per-frame code.

§blur: BlurParams

The old state’s own (unblended) var_pf_blur* (GetSafeBlurMinMax(m_pOldState)).

§ext: ShaderExt

MilkDrop 3: the old state’s _c14 / _qi.._qp / shader time (ShaderExt::fft is ignored here).

§warp_random: Option<PassRandom>

Random state of the old warp / composite pass (m_pOldState->m_rand_preset, m_rot_*; rand_frame is the frame’s one m_rand_frame).

§comp_random: Option<PassRandom>

Random state of the old composite pass.

Trait Implementations§

Source§

impl Clone for Md2OldPass

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Md2OldPass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Md2OldPass

§

impl Freeze for Md2OldPass
where *const ArcInner<[f32; 512]> is !null: Freeze, PhantomData<ArcInner<[f32; 512]>>: Freeze, *const ArcInner<BeatDropTexture> is !null: Freeze, PhantomData<ArcInner<BeatDropTexture>>: Freeze, *const [[[f32; 4]; 3]; 24] is !null: Freeze, PhantomData<[[[f32; 4]; 3]; 24]>: Freeze,

§

impl Move for Md2OldPass

§

impl RefUnwindSafe for Md2OldPass

§

impl Send for Md2OldPass
where Arc<[f32; 512]>: Send, Arc<BeatDropTexture>: Send, BoxRaw<[[[f32; 4]; 3]; 24]>: Send,

§

impl Sync for Md2OldPass
where Arc<[f32; 512]>: Sync, Arc<BeatDropTexture>: Sync, BoxRaw<[[[f32; 4]; 3]; 24]>: Sync,

§

impl Unpin for Md2OldPass
where Arc<[f32; 512]>: Unpin, Arc<BeatDropTexture>: Unpin, Box<[[[f32; 4]; 3]; 24]>: Unpin,

§

impl UnsafeUnpin for Md2OldPass
where *const ArcInner<[f32; 512]> is !null: UnsafeUnpin, PhantomData<ArcInner<[f32; 512]>>: UnsafeUnpin, *const ArcInner<BeatDropTexture> is !null: UnsafeUnpin, PhantomData<ArcInner<BeatDropTexture>>: UnsafeUnpin, *const [[[f32; 4]; 3]; 24] is !null: UnsafeUnpin, PhantomData<[[[f32; 4]; 3]; 24]>: UnsafeUnpin,

§

impl UnwindSafe for Md2OldPass
where Arc<[f32; 512]>: UnwindSafe, Arc<BeatDropTexture>: UnwindSafe, BoxRaw<[[[f32; 4]; 3]; 24]>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,