pub struct Hook {
pub name: String,
pub source: String,
pub params: Vec<(String, f64)>,
pub tracks: Vec<ParamTrack>,
}Expand description
An inline mpv .hook shader and the values of its //!PARAMs.
Fields§
§name: StringFor error messages.
source: StringThe shader text.
params: Vec<(String, f64)>//!PARAM values set before the first frame (integer params are rounded).
tracks: Vec<ParamTrack>//!PARAM values per output frame.
Trait Implementations§
impl StructuralPartialEq for Hook
Auto Trait Implementations§
impl Forget for Hook
impl Freeze for Hook
impl RefUnwindSafe for Hook
impl Send for Hook
impl Sync for Hook
impl Unpin for Hook
impl UnsafeUnpin for Hook
impl UnwindSafe for Hook
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