Struct vulkano::command_buffer::DynamicState
source · pub struct DynamicState {
pub line_width: Option<f32>,
pub viewports: Option<Vec<Viewport>>,
pub scissors: Option<Vec<Scissor>>,
}
Expand description
The dynamic state to use for a draw command.
Fields
line_width: Option<f32>
viewports: Option<Vec<Viewport>>
scissors: Option<Vec<Scissor>>
Implementations
sourceimpl DynamicState
impl DynamicState
pub fn none() -> DynamicState
Trait Implementations
sourceimpl Clone for DynamicState
impl Clone for DynamicState
sourcefn clone(&self) -> DynamicState
fn clone(&self) -> DynamicState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DynamicState
impl Debug for DynamicState
sourceimpl Default for DynamicState
impl Default for DynamicState
sourcefn default() -> DynamicState
fn default() -> DynamicState
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DynamicState
impl Send for DynamicState
impl Sync for DynamicState
impl Unpin for DynamicState
impl UnwindSafe for DynamicState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.