pub struct PreparedPrograms { /* private fields */ }Expand description
Which of the process’s fragment programs one renderer has prepared: what a host keeps beside
each renderer it draws with, to prepare every program made on it before its next draw, as the
engine runs CacheRuntimeStage on its raster thread when a program loads.
Implementations§
Source§impl PreparedPrograms
impl PreparedPrograms
Sourcepub fn new() -> PreparedPrograms
pub fn new() -> PreparedPrograms
A renderer that has prepared none.
Sourcepub fn prepare_new(&mut self, prepare: impl FnMut(&Arc<RuntimeEffect>))
pub fn prepare_new(&mut self, prepare: impl FnMut(&Arc<RuntimeEffect>))
Hands prepare the effect of each program made since the last call, the first made
first, leaving out those no one holds any longer: a host prepares each with
valo::Context::prepare_runtime_effect for the format it draws into.
Trait Implementations§
Source§impl Debug for PreparedPrograms
impl Debug for PreparedPrograms
Auto Trait Implementations§
impl Forget for PreparedPrograms
impl Freeze for PreparedPrograms
impl Move for PreparedPrograms
impl RefUnwindSafe for PreparedPrograms
impl Send for PreparedPrograms
impl Sync for PreparedPrograms
impl Unpin for PreparedPrograms
impl UnsafeUnpin for PreparedPrograms
impl UnwindSafe for PreparedPrograms
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