Enum vulkano::pipeline::viewport::ViewportsState
source · pub enum ViewportsState {
Fixed {
data: Vec<(Viewport, Scissor)>,
},
DynamicViewports {
scissors: Vec<Scissor>,
},
DynamicScissors {
viewports: Vec<Viewport>,
},
Dynamic {
num: u32,
},
}
Expand description
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.
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.
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.
Dynamic
Fields
num: u32
Number of viewports and scissors.
The state of both the viewports and scissors is dynamic and will be set when drawing.
Implementations
sourceimpl ViewportsState
impl ViewportsState
sourcepub fn dynamic_viewports(&self) -> bool
pub fn dynamic_viewports(&self) -> bool
Returns true if the state of the viewports is dynamic.
sourcepub fn dynamic_scissors(&self) -> bool
pub fn dynamic_scissors(&self) -> bool
Returns true if the state of the scissors is dynamic.
sourcepub fn num_viewports(&self) -> u32
pub fn num_viewports(&self) -> u32
Returns the number of viewports and scissors.
Trait Implementations
sourceimpl Clone for ViewportsState
impl Clone for ViewportsState
sourcefn clone(&self) -> ViewportsState
fn clone(&self) -> ViewportsState
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more