Struct webrender::frame_builder::FrameGlobalResources
source · 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: GpuCacheHandle
The image shader block for the most common / default set of image parameters (color white, stretch == rect.size).
default_black_rect_handle: GpuCacheHandle
A 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