pub enum TextureOrigin {
TopLeft,
BottomLeft,
}Expand description
Which corner of the texture holds row 0 of the image.
GL renders with the origin at the bottom-left; most compositors expect
top-left. The import paths in this crate Y-flip during blit so that all
returned textures have TextureOrigin::TopLeft when
ImportOptions::normalize_origin is true (the default).
Variants§
TopLeft
Row 0 is the top row. The standard convention for wgpu/Vulkan/Metal.
BottomLeft
Row 0 is the bottom row. Raw GL output before Y-flip normalization.
Trait Implementations§
Source§impl Clone for TextureOrigin
impl Clone for TextureOrigin
impl Copy for TextureOrigin
Source§impl Debug for TextureOrigin
impl Debug for TextureOrigin
impl Eq for TextureOrigin
Source§impl PartialEq for TextureOrigin
impl PartialEq for TextureOrigin
impl StructuralPartialEq for TextureOrigin
Auto Trait Implementations§
impl Freeze for TextureOrigin
impl RefUnwindSafe for TextureOrigin
impl Send for TextureOrigin
impl Sync for TextureOrigin
impl Unpin for TextureOrigin
impl UnsafeUnpin for TextureOrigin
impl UnwindSafe for TextureOrigin
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more