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
origin: [f32; 2]
Coordinates in pixels of the top-left hand corner of the viewport.
dimensions: [f32; 2]
Dimensions in pixels of the viewport.
depth_range: Range<f32>
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]
impl Clone for Viewport
[src]
fn clone(&self) -> Viewport
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more