pub struct MilkPreset {
pub version: u32,
pub ps_version_warp: u32,
pub ps_version_comp: u32,
pub parameters: PresetParameters,
pub per_frame_equations: Vec<String>,
pub per_pixel_equations: Vec<String>,
pub per_frame_init_equations: Vec<String>,
pub waves: Vec<WaveCode>,
pub shapes: Vec<ShapeCode>,
pub warp_shader: Option<String>,
pub comp_shader: Option<String>,
}Expand description
A complete Milkdrop preset.
Fields§
§version: u32Preset version (e.g., 201 for Milkdrop 2.0)
ps_version_warp: u32Pixel shader version for warp shader
ps_version_comp: u32Pixel shader version for composite shader
parameters: PresetParametersBase parameters (static values)
per_frame_equations: Vec<String>Per-frame equations (executed once per frame)
per_pixel_equations: Vec<String>Per-pixel equations (executed for each pixel)
per_frame_init_equations: Vec<String>Initialization equations (executed once when preset loads)
waves: Vec<WaveCode>Custom waveforms (up to 16)
shapes: Vec<ShapeCode>Custom shapes (up to 16)
warp_shader: Option<String>Warp shader code (HLSL/GLSL)
comp_shader: Option<String>Composite shader code (HLSL/GLSL)
Trait Implementations§
Source§impl Clone for MilkPreset
impl Clone for MilkPreset
Source§fn clone(&self) -> MilkPreset
fn clone(&self) -> MilkPreset
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 MilkPreset
impl Debug for MilkPreset
Source§impl Default for MilkPreset
impl Default for MilkPreset
Source§fn default() -> MilkPreset
fn default() -> MilkPreset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MilkPreset
impl<'de> Deserialize<'de> for MilkPreset
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MilkPreset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MilkPreset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MilkPreset
impl PartialEq for MilkPreset
Source§impl Serialize for MilkPreset
impl Serialize for MilkPreset
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MilkPreset
Auto Trait Implementations§
impl Freeze for MilkPreset
impl RefUnwindSafe for MilkPreset
impl Send for MilkPreset
impl Sync for MilkPreset
impl Unpin for MilkPreset
impl UnwindSafe for MilkPreset
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().