pub struct CanvasInfo {
pub tile_size: u32,
pub pad: u32,
}Expand description
Per-render canvas geometry. The padded buffer is the actual size all
Raster ports must produce; the final tile is the inner tile_size
region.
Fields§
§tile_size: u32§pad: u32Implementations§
Source§impl CanvasInfo
impl CanvasInfo
pub fn padded_size(&self) -> u32
Trait Implementations§
Source§impl Clone for CanvasInfo
impl Clone for CanvasInfo
Source§fn clone(&self) -> CanvasInfo
fn clone(&self) -> CanvasInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanvasInfo
impl Debug for CanvasInfo
Source§impl Hash for CanvasInfo
impl Hash for CanvasInfo
Source§impl PartialEq for CanvasInfo
impl PartialEq for CanvasInfo
Source§fn eq(&self, other: &CanvasInfo) -> bool
fn eq(&self, other: &CanvasInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CanvasInfo
impl Eq for CanvasInfo
impl StructuralPartialEq for CanvasInfo
Auto Trait Implementations§
impl Freeze for CanvasInfo
impl RefUnwindSafe for CanvasInfo
impl Send for CanvasInfo
impl Sync for CanvasInfo
impl Unpin for CanvasInfo
impl UnsafeUnpin for CanvasInfo
impl UnwindSafe for CanvasInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.