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§impl<'de> Deserialize<'de> for MilkPreset
impl<'de> Deserialize<'de> for MilkPreset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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