[][src]Struct dxplr::d3d12::Viewport

#[repr(C)]pub struct Viewport {
    pub top_left_x: f32,
    pub top_left_y: f32,
    pub width: f32,
    pub height: f32,
    pub min_depth: f32,
    pub max_depth: f32,
}

Fields

top_left_x: f32top_left_y: f32width: f32height: f32min_depth: f32max_depth: f32

Implementations

impl Viewport[src]

pub fn new() -> Self[src]

pub fn top_left_x(self, top_left_x: f32) -> Self[src]

pub fn top_left_y(self, top_left_y: f32) -> Self[src]

pub fn width(self, width: f32) -> Self[src]

pub fn height(self, height: f32) -> Self[src]

pub fn min_depth(self, min_depth: f32) -> Self[src]

pub fn max_depth(self, max_depth: f32) -> Self[src]

Trait Implementations

impl Clone for Viewport[src]

impl Debug for Viewport[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.