pub struct QuadDemand<'a> {
pub program: &'a ShaderProgram,
pub size: (u32, u32),
pub time: f32,
}Expand description
One program’s whole demand on a frame: which program, how large a target it wants, and the time to render it at.
Collapsed across every quad the frame draws that program with — see the module header’s one-target-per-program rule.
Fields§
§program: &'a ShaderProgramThe program to render, borrowed from the display list.
size: (u32, u32)The clamped target extent, in texels.
time: f32The time uniform, from the program’s first quad in painter order.
Trait Implementations§
Source§impl<'a> Clone for QuadDemand<'a>
impl<'a> Clone for QuadDemand<'a>
impl<'a> Copy for QuadDemand<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuadDemand<'a>
impl<'a> RefUnwindSafe for QuadDemand<'a>
impl<'a> Send for QuadDemand<'a>
impl<'a> Sync for QuadDemand<'a>
impl<'a> Unpin for QuadDemand<'a>
impl<'a> UnsafeUnpin for QuadDemand<'a>
impl<'a> UnwindSafe for QuadDemand<'a>
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