[−][src]Struct grr::Viewport
Viewport transformation.
Viewport transformation is part of the fixed-function Vertex Post-Processing pipeline.
The returning vertex positions (GLSL: gl_Position
) in clip space are transformed to
normalized device coordinates (NDC) by perspective division. Viewport transformation
further converts the NDC into framebuffer coordinates.
During the geometry a primitive will be assigned a viewport index (GLSL: gl_ViewportIndex
)
either automatically or manually. This index controls which viewport from the bounded
viewports will be selected for applying the transformation for the current primitive.
Fields
x: f32
Offset (x).
y: f32
Offset (y).
w: f32
Width.
h: f32
Height.
n: f64
f: f64
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,