pub struct HeadlessSpec {
pub width: u32,
pub height: u32,
pub base_color: Color,
pub root: Affine,
}Expand description
One offscreen render’s parameters.
Fields§
§width: u32Target width in device pixels. Any width is valid — the readback pads and strips rows as wgpu requires.
height: u32Target height in device pixels.
base_color: ColorThe colour the renderer clears the target to before drawing the scene.
root: AffineA transform applied on top of the whole encoded scene — the headless analogue of the root a live surface encodes under.
Implementations§
Trait Implementations§
Source§impl Clone for HeadlessSpec
impl Clone for HeadlessSpec
impl Copy for HeadlessSpec
Source§impl Debug for HeadlessSpec
impl Debug for HeadlessSpec
Source§impl PartialEq for HeadlessSpec
impl PartialEq for HeadlessSpec
impl StructuralPartialEq for HeadlessSpec
Auto Trait Implementations§
impl Freeze for HeadlessSpec
impl RefUnwindSafe for HeadlessSpec
impl Send for HeadlessSpec
impl Sync for HeadlessSpec
impl Unpin for HeadlessSpec
impl UnsafeUnpin for HeadlessSpec
impl UnwindSafe for HeadlessSpec
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