Struct librashader_common::Viewport 
source · pub struct Viewport<'a, T> {
    pub x: f32,
    pub y: f32,
    pub mvp: Option<&'a [f32; 16]>,
    pub output: T,
}Expand description
The rendering output of a filter chain.
Fields§
§x: f32The x offset to start rendering from.
y: f32The y offset to begin rendering from.
mvp: Option<&'a [f32; 16]>An optional pointer to an MVP to use when rendering to the viewport.
output: TThe output handle to render the final image to.
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for Viewport<'a, T>where
    T: RefUnwindSafe,
impl<'a, T> Send for Viewport<'a, T>where
    T: Send,
impl<'a, T> Sync for Viewport<'a, T>where
    T: Sync,
impl<'a, T> Unpin for Viewport<'a, T>where
    T: Unpin,
impl<'a, T> UnwindSafe for Viewport<'a, T>where
    T: UnwindSafe,
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