// Copyright 2026 the Vello Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT
//! The offset filter.
/// Translation/shift filter.
////// This shifts the input image by `(dx, dy)` in device pixel space.
#[derive(Clone, Copy, Debug)]pubstructOffset{/// The x-offset that should be applied.
pubdx:f32,
/// The y-offset that should be applied.
pubdy:f32,
}implOffset{/// Create a new offset filter.
pubfnnew(dx:f32, dy:f32)->Self{Self{ dx, dy }}}