pub struct FrameGlobalResources {
pub default_image_data: GpuBufferAddress,
pub default_black_rect_address: GpuBufferAddress,
}Expand description
A set of default / global resources that are re-built each frame.
Fields§
§default_image_data: GpuBufferAddressThe image shader block for the most common / default set of image parameters (color white, stretch == rect.size).
default_black_rect_address: GpuBufferAddressA GPU cache config for drawing cut-out rectangle primitives. This is used to ‘cut out’ overlay tiles where a compositor surface exists.
Implementations§
Source§impl FrameGlobalResources
impl FrameGlobalResources
pub fn new(gpu_buffers: &mut GpuBufferBuilder) -> Self
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 UnsafeUnpin 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