pub struct ScaleNode {
pub width: u32,
pub height: u32,
pub algorithm: ScaleAlgorithm,
}Expand description
Resample a frame to a target resolution.
In Phase 1 the GPU path renders into the output texture at whatever size
it was allocated — the graph allocates same-size textures, so ScaleNode
acts as a bilinear blit pass. Full dimension-changing support (variable
output texture size) is a Phase 2 addition.
The CPU path is a no-op; use an offline scaler (e.g. image crate) for
CPU-side resizing.
Fields§
§width: u32Target width in pixels (used as metadata; output size depends on the graph).
height: u32Target height in pixels.
algorithm: ScaleAlgorithmSampling algorithm.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScaleNode
impl RefUnwindSafe for ScaleNode
impl Send for ScaleNode
impl Sync for ScaleNode
impl Unpin for ScaleNode
impl UnsafeUnpin for ScaleNode
impl UnwindSafe for ScaleNode
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