[][src]Struct azul_webrender_api::units::TexelRect

pub struct TexelRect {
    pub uv0: DevicePoint,
    pub uv1: DevicePoint,
}

Stores two coordinates in texel space. The coordinates are stored in texel coordinates because the texture atlas may grow. Storing them as texel coords and normalizing the UVs in the vertex shader means nothing needs to be updated on the CPU when the texture size changes.

Fields

uv0: DevicePointuv1: DevicePoint

Implementations

impl TexelRect[src]

pub fn new(u0: f32, v0: f32, u1: f32, v1: f32) -> Self[src]

pub fn invalid() -> Self[src]

Trait Implementations

impl Clone for TexelRect[src]

impl Copy for TexelRect[src]

impl Debug for TexelRect[src]

impl<'de> Deserialize<'de> for TexelRect[src]

impl Into<TexelRect> for DeviceIntRect[src]

impl Serialize for TexelRect[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.