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

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

The state is known in advance.

Fields of Fixed

State of the viewports and scissors.

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

State of the scissors.

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

State of the viewports

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

Fields of Dynamic

Number of viewports and scissors.

Methods

impl ViewportsState
[src]

[src]

Returns true if the state of the viewports is dynamic.

[src]

Returns true if the state of the scissors is dynamic.

[src]

Returns the number of viewports and scissors.

Trait Implementations

impl Debug for ViewportsState
[src]

[src]

Formats the value using the given formatter.

impl Clone for ViewportsState
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more