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
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 Debug for ViewportsState
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ViewportsState
[src]
fn clone(&self) -> ViewportsState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more