[][src]Enum vulkano::pipeline::viewport::ViewportsState

pub enum ViewportsState {
    Fixed {
        data: Vec<(Viewport, Scissor)>,
    },
    DynamicViewports {
        scissors: Vec<Scissor>,
    },
    DynamicScissors {
        viewports: Vec<Viewport>,
    },
    Dynamic {
        num: u32,
    },
}

List of viewports and scissors that are used when creating a graphics pipeline object.

Note that the number of viewports and scissors must be the same.

Variants

Fixed

The state is known in advance.

Fields of Fixed

data: Vec<(Viewport, Scissor)>

State of the viewports and scissors.

DynamicViewports

The state of scissors is known in advance, but the state of viewports is dynamic and will bet set when drawing.

Note that the number of viewports and scissors must be the same.

Fields of DynamicViewports

scissors: Vec<Scissor>

State of the scissors.

DynamicScissors

The state of viewports is known in advance, but the state of scissors is dynamic and will bet set when drawing.

Note that the number of viewports and scissors must be the same.

Fields of DynamicScissors

viewports: Vec<Viewport>

State of the viewports

Dynamic

The state of both the viewports and scissors is dynamic and will be set when drawing.

Fields of Dynamic

num: u32

Number of viewports and scissors.

Methods

impl ViewportsState[src]

pub fn dynamic_viewports(&self) -> bool[src]

Returns true if the state of the viewports is dynamic.

pub fn dynamic_scissors(&self) -> bool[src]

Returns true if the state of the scissors is dynamic.

pub fn num_viewports(&self) -> u32[src]

Returns the number of viewports and scissors.

Trait Implementations

impl Clone for ViewportsState[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ViewportsState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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