pub struct ViewportState {
pub flags: PipelineViewportStateCreateFlags,
pub viewports: Vec<Viewport>,
pub scissors: Vec<Rect2D>,
}Expand description
Fields§
§flags: PipelineViewportStateCreateFlags§viewports: Vec<Viewport>§scissors: Vec<Rect2D>Implementations§
Source§impl ViewportState
impl ViewportState
pub fn new_dynamic(viewport_count: usize, scissor_count: usize) -> Self
pub fn write_create_info_builder<'a>( &'a self, builder: PipelineViewportStateCreateInfoBuilder<'a>, ) -> PipelineViewportStateCreateInfoBuilder<'a>
pub fn create_info_builder(&self) -> PipelineViewportStateCreateInfoBuilder<'_>
Sourcepub unsafe fn from_create_info(value: &PipelineViewportStateCreateInfo) -> Self
pub unsafe fn from_create_info(value: &PipelineViewportStateCreateInfo) -> Self
Safety:
- if
p_viewportsis not null, it must point to an array ofviewport_countvalues - if
p_scissorsis not null, it must point to an array ofscissor_countvalues
pub fn from_create_info_builder( value: &PipelineViewportStateCreateInfoBuilder<'_>, ) -> Self
Trait Implementations§
Source§impl Clone for ViewportState
impl Clone for ViewportState
Source§fn clone(&self) -> ViewportState
fn clone(&self) -> ViewportState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewportState
impl Debug for ViewportState
Auto Trait Implementations§
impl Freeze for ViewportState
impl RefUnwindSafe for ViewportState
impl Send for ViewportState
impl Sync for ViewportState
impl Unpin for ViewportState
impl UnwindSafe for ViewportState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more