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 -1.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.

Trait Implementations

impl Debug for Viewport
[src]

Formats the value using the given formatter.

impl Clone for Viewport
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more