pub enum SurfaceTransform {
    Identity,
    Rotate90,
    Rotate180,
    Rotate270,
    HorizontalMirror,
    HorizontalMirrorRotate90,
    HorizontalMirrorRotate180,
    HorizontalMirrorRotate270,
    Inherit,
}
Expand description

List of the hardware display transformations

Variants

Identity

Specify that image content is presented without being transformed.

Rotate90

Specify that image content is rotated 90 degrees clockwise.

Rotate180

Specify that image content is rotated 180 degrees clockwise.

Rotate270

Specify that image content is rotated 270 degrees clockwise.

HorizontalMirror

Specify that image content is mirrored horizontally.

HorizontalMirrorRotate90

Specify that image content is mirrored horizontally, then rotated 90 degrees clockwise.

HorizontalMirrorRotate180

Specify that image content is mirrored horizontally, then rotated 180 degrees clockwise.

HorizontalMirrorRotate270

Specify that image content is mirrored horizontally, then rotated 270 degrees clockwise.

Inherit

Specify that the presentation transform is not specified, and is instead determined by platform-specific considerations and mechanisms outside Vulkan.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.