pub struct ImageBatchPlacement { /* private fields */ }Expand description
Independent presentation of one retained image batch or glyph run.
Translation uses top-left logical pixels in the pass’s local coordinates. It moves content before viewport placement, without moving the pass clip. Tint multiplies each instance’s straight-linear RGBA, including alpha. Multiple draws can share immutable layout with different placements.
Implementations§
Source§impl ImageBatchPlacement
impl ImageBatchPlacement
Sourcepub fn new(
translation: LogicalScreenVector,
tint: Color,
) -> Result<Self, ImageError>
pub fn new( translation: LogicalScreenVector, tint: Color, ) -> Result<Self, ImageError>
Creates a portable logical translation and normalized multiplicative tint. Negative translation is supported. Target-dependent arithmetic is checked again before submission; leaving the target is ordinary clipping.
Sourcepub const fn translation(self) -> LogicalScreenVector
pub const fn translation(self) -> LogicalScreenVector
Returns the content offset in local logical pixels.
Trait Implementations§
Source§impl Clone for ImageBatchPlacement
impl Clone for ImageBatchPlacement
impl Copy for ImageBatchPlacement
Source§impl Debug for ImageBatchPlacement
impl Debug for ImageBatchPlacement
Source§impl Default for ImageBatchPlacement
impl Default for ImageBatchPlacement
Source§impl PartialEq for ImageBatchPlacement
impl PartialEq for ImageBatchPlacement
impl StructuralPartialEq for ImageBatchPlacement
Auto Trait Implementations§
impl Freeze for ImageBatchPlacement
impl RefUnwindSafe for ImageBatchPlacement
impl Send for ImageBatchPlacement
impl Sync for ImageBatchPlacement
impl Unpin for ImageBatchPlacement
impl UnsafeUnpin for ImageBatchPlacement
impl UnwindSafe for ImageBatchPlacement
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