Struct ash::vk::definitions::PipelineViewportStateCreateInfo
source · #[repr(C)]pub struct PipelineViewportStateCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineViewportStateCreateFlags,
pub viewport_count: u32,
pub p_viewports: *const Viewport,
pub scissor_count: u32,
pub p_scissors: *const Rect2D,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: PipelineViewportStateCreateFlags
§viewport_count: u32
§p_viewports: *const Viewport
§scissor_count: u32
§p_scissors: *const Rect2D
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PipelineViewportStateCreateInfo<'a>
impl<'a> PipelineViewportStateCreateInfo<'a>
pub fn flags(self, flags: PipelineViewportStateCreateFlags) -> Self
pub fn viewport_count(self, viewport_count: u32) -> Self
pub fn viewports(self, viewports: &'a [Viewport]) -> Self
pub fn scissor_count(self, scissor_count: u32) -> Self
pub fn scissors(self, scissors: &'a [Rect2D]) -> Self
sourcepub fn push_next<T: ExtendsPipelineViewportStateCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsPipelineViewportStateCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for PipelineViewportStateCreateInfo<'a>
impl<'a> Clone for PipelineViewportStateCreateInfo<'a>
source§fn clone(&self) -> PipelineViewportStateCreateInfo<'a>
fn clone(&self) -> PipelineViewportStateCreateInfo<'a>
Returns a copy 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<'a> Debug for PipelineViewportStateCreateInfo<'a>
impl<'a> Debug for PipelineViewportStateCreateInfo<'a>
source§impl Default for PipelineViewportStateCreateInfo<'_>
impl Default for PipelineViewportStateCreateInfo<'_>
source§impl<'a> TaggedStructure for PipelineViewportStateCreateInfo<'a>
impl<'a> TaggedStructure for PipelineViewportStateCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_VIEWPORT_STATE_CREATE_INFO
impl<'a> Copy for PipelineViewportStateCreateInfo<'a>
impl Send for PipelineViewportStateCreateInfo<'_>
impl Sync for PipelineViewportStateCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for PipelineViewportStateCreateInfo<'a>
impl<'a> RefUnwindSafe for PipelineViewportStateCreateInfo<'a>
impl<'a> Unpin for PipelineViewportStateCreateInfo<'a>
impl<'a> UnwindSafe for PipelineViewportStateCreateInfo<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)