Enum vulkano::swapchain::SurfaceTransform
source · [−]#[non_exhaustive]
#[repr(u32)]
pub enum SurfaceTransform {
Identity,
Rotate90,
Rotate180,
Rotate270,
HorizontalMirror,
HorizontalMirrorRotate90,
HorizontalMirrorRotate180,
HorizontalMirrorRotate270,
Inherit,
}
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
sourceimpl Clone for SurfaceTransform
impl Clone for SurfaceTransform
sourcefn clone(&self) -> SurfaceTransform
fn clone(&self) -> SurfaceTransform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SurfaceTransform
impl Debug for SurfaceTransform
sourceimpl Default for SurfaceTransform
impl Default for SurfaceTransform
sourcefn default() -> SurfaceTransform
fn default() -> SurfaceTransform
Returns the “default value” for a type. Read more
sourceimpl From<SurfaceTransform> for SurfaceTransformFlagsKHR
impl From<SurfaceTransform> for SurfaceTransformFlagsKHR
sourcefn from(val: SurfaceTransform) -> Self
fn from(val: SurfaceTransform) -> Self
Converts to this type from the input type.
sourceimpl Hash for SurfaceTransform
impl Hash for SurfaceTransform
sourceimpl PartialEq<SurfaceTransform> for SurfaceTransform
impl PartialEq<SurfaceTransform> for SurfaceTransform
sourcefn eq(&self, other: &SurfaceTransform) -> bool
fn eq(&self, other: &SurfaceTransform) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more