Enum vulkano::swapchain::SurfaceTransform
source · #[non_exhaustive]
#[repr(u32)]
pub enum SurfaceTransform {
Identity,
Rotate90,
Rotate180,
Rotate270,
HorizontalMirror,
HorizontalMirrorRotate90,
HorizontalMirrorRotate180,
HorizontalMirrorRotate270,
Inherit,
}
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
Don’t transform the image.
Rotate90
Rotate 90 degrees.
Rotate180
Rotate 180 degrees.
Rotate270
Rotate 270 degrees.
HorizontalMirror
Mirror the image horizontally.
HorizontalMirrorRotate90
Mirror the image horizontally and rotate 90 degrees.
HorizontalMirrorRotate180
Mirror the image horizontally and rotate 180 degrees.
HorizontalMirrorRotate270
Mirror the image horizontally and rotate 270 degrees.
Inherit
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<SurfaceTransform> for SurfaceTransform
impl PartialEq<SurfaceTransform> 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 ==
.