pub struct ProgramCache { /* private fields */ }
Implementations§
Source§impl ProgramCache
impl ProgramCache
pub fn new( program_cache_observer: Option<Box<dyn ProgramCacheObserver>>, ) -> Rc<Self>
Sourcepub fn report_memory(&self, op: VoidPtrToSizeFn) -> usize
pub fn report_memory(&self, op: VoidPtrToSizeFn) -> usize
Returns the number of bytes allocated for shaders in the cache.
Auto Trait Implementations§
impl !Freeze for ProgramCache
impl !RefUnwindSafe for ProgramCache
impl !Send for ProgramCache
impl !Sync for ProgramCache
impl Unpin for ProgramCache
impl !UnwindSafe for ProgramCache
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more