Enum vulkano::swapchain::SurfaceTransform
source · #[non_exhaustive]#[repr(u32)]pub enum SurfaceTransform {
Identity = 1,
Rotate90 = 2,
Rotate180 = 4,
Rotate270 = 8,
HorizontalMirror = 16,
HorizontalMirrorRotate90 = 32,
HorizontalMirrorRotate180 = 64,
HorizontalMirrorRotate270 = 128,
Inherit = 256,
}
Expand description
The presentation transform to apply when presenting a swapchain image to a surface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Identity = 1
Don’t transform the image.
Rotate90 = 2
Rotate 90 degrees.
Rotate180 = 4
Rotate 180 degrees.
Rotate270 = 8
Rotate 270 degrees.
HorizontalMirror = 16
Mirror the image horizontally.
HorizontalMirrorRotate90 = 32
Mirror the image horizontally and rotate 90 degrees.
HorizontalMirrorRotate180 = 64
Mirror the image horizontally and rotate 180 degrees.
HorizontalMirrorRotate270 = 128
Mirror the image horizontally and rotate 270 degrees.
Inherit = 256
Let the operating system or driver implementation choose.
Trait Implementations§
source§impl Clone for SurfaceTransform
impl Clone for SurfaceTransform
source§fn clone(&self) -> SurfaceTransform
fn clone(&self) -> SurfaceTransform
Returns a copy of the value. Read more
1.0.0 · 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 SurfaceTransform
impl Debug for SurfaceTransform
source§impl Default for SurfaceTransform
impl Default for SurfaceTransform
source§fn default() -> SurfaceTransform
fn default() -> SurfaceTransform
Returns the “default value” for a type. Read more
source§impl From<SurfaceTransform> for SurfaceTransformFlagsKHR
impl From<SurfaceTransform> for SurfaceTransformFlagsKHR
source§fn from(val: SurfaceTransform) -> Self
fn from(val: SurfaceTransform) -> Self
Converts to this type from the input type.
source§impl From<SurfaceTransform> for SurfaceTransforms
impl From<SurfaceTransform> for SurfaceTransforms
source§fn from(val: SurfaceTransform) -> Self
fn from(val: SurfaceTransform) -> Self
Converts to this type from the input type.
source§impl FromIterator<SurfaceTransform> for SurfaceTransforms
impl FromIterator<SurfaceTransform> for SurfaceTransforms
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SurfaceTransform>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = SurfaceTransform>,
Creates a value from an iterator. Read more
source§impl Hash for SurfaceTransform
impl Hash for SurfaceTransform
source§impl PartialEq for SurfaceTransform
impl PartialEq for SurfaceTransform
source§fn eq(&self, other: &SurfaceTransform) -> bool
fn eq(&self, other: &SurfaceTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SurfaceTransform
impl Eq for SurfaceTransform
impl StructuralEq for SurfaceTransform
impl StructuralPartialEq for SurfaceTransform
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceTransform
impl Send for SurfaceTransform
impl Sync for SurfaceTransform
impl Unpin for SurfaceTransform
impl UnwindSafe for SurfaceTransform
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