Struct vulkano::pipeline::viewport::Viewport [] [src]

pub struct Viewport {
    pub origin: [f32; 2],
    pub dimensions: [f32; 2],
    pub depth_range: Range<f32>,
}

State of a single viewport.

Fields

Coordinates in pixels of the top-left hand corner of the viewport.

Dimensions in pixels of the viewport.

Minimum and maximum values of the depth.

The values 0.0 to 1.0 of each vertex's Z coordinate will be mapped to this depth_range before being compared to the existing depth value.

This is equivalents to glDepthRange in OpenGL, except that OpenGL uses the Z coordinate range from -1.0 to 1.0 instead.

Trait Implementations

impl Debug for Viewport
[src]

[src]

Formats the value using the given formatter.

impl Clone for Viewport
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Viewport
[src]

[src]

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

[src]

This method tests for !=.