pub struct FrameGlobalResources {
    pub default_image_handle: GpuCacheHandle,
    pub default_black_rect_handle: GpuCacheHandle,
}Expand description
A set of common / global resources that are retained between new display lists, such that any GPU cache handles can be persisted even when a new display list arrives.
Fields§
§default_image_handle: GpuCacheHandleThe image shader block for the most common / default set of image parameters (color white, stretch == rect.size).
default_black_rect_handle: GpuCacheHandleA GPU cache config for drawing cut-out rectangle primitives. This is used to ‘cut out’ overlay tiles where a compositor surface exists.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameGlobalResources
impl RefUnwindSafe for FrameGlobalResources
impl Send for FrameGlobalResources
impl Sync for FrameGlobalResources
impl Unpin for FrameGlobalResources
impl UnwindSafe for FrameGlobalResources
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