pub struct RenderFixture {
pub width: u32,
pub height: u32,
pub graph: RenderGraph,
pub normalized_rect: Option<Rect>,
}Expand description
A scene that every backend renders for a shared case, with the frame size it renders at.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
graph: RenderGraphThe scene to render.
normalized_rect: Option<Rect>Region of the frame, in pixels, to resample to a fixed size before frames are compared, or
None when frames are compared at their rendered size.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RenderFixture
impl !RefUnwindSafe for RenderFixture
impl !Send for RenderFixture
impl !Sync for RenderFixture
impl !UnwindSafe for RenderFixture
impl Unpin for RenderFixture
impl UnsafeUnpin for RenderFixture
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