[−][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
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnwindSafe for Viewport
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,