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]
impl ViewportsState
pub fn dynamic_viewports(&self) -> bool
[src]
pub fn dynamic_viewports(&self) -> bool
Returns true if the state of the viewports is dynamic.
pub fn dynamic_scissors(&self) -> bool
[src]
pub fn dynamic_scissors(&self) -> bool
Returns true if the state of the scissors is dynamic.
pub fn num_viewports(&self) -> u32
[src]
pub fn num_viewports(&self) -> u32
Returns the number of viewports and scissors.
Trait Implementations
impl Debug for ViewportsState
[src]
impl Debug for ViewportsState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ViewportsState
[src]
impl Clone for ViewportsState
fn clone(&self) -> ViewportsState
[src]
fn clone(&self) -> ViewportsState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ViewportsState
impl Send for ViewportsState
impl Sync for ViewportsState
impl Sync for ViewportsState