#[repr(C)]pub struct SwapchainCreateInfoKHR<'a> {Show 19 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: SwapchainCreateFlagsKHR,
pub surface: SurfaceKHR,
pub min_image_count: u32,
pub image_format: Format,
pub image_color_space: ColorSpaceKHR,
pub image_extent: Extent2D,
pub image_array_layers: u32,
pub image_usage: ImageUsageFlags,
pub image_sharing_mode: SharingMode,
pub queue_family_index_count: u32,
pub p_queue_family_indices: *const u32,
pub pre_transform: SurfaceTransformFlagsKHR,
pub composite_alpha: CompositeAlphaFlagsKHR,
pub present_mode: PresentModeKHR,
pub clipped: u32,
pub old_swapchain: SwapchainKHR,
pub _marker: PhantomData<&'a ()>,
}Expand description
Fields§
§s_type: StructureType§p_next: *const c_void§flags: SwapchainCreateFlagsKHR§surface: SurfaceKHR§min_image_count: u32§image_format: Format§image_color_space: ColorSpaceKHR§image_extent: Extent2D§image_array_layers: u32§image_usage: ImageUsageFlags§image_sharing_mode: SharingMode§queue_family_index_count: u32§p_queue_family_indices: *const u32§pre_transform: SurfaceTransformFlagsKHR§composite_alpha: CompositeAlphaFlagsKHR§present_mode: PresentModeKHR§clipped: u32§old_swapchain: SwapchainKHR§_marker: PhantomData<&'a ()>Implementations§
Source§impl<'a> SwapchainCreateInfoKHR<'a>
impl<'a> SwapchainCreateInfoKHR<'a>
pub fn flags(self, flags: SwapchainCreateFlagsKHR) -> SwapchainCreateInfoKHR<'a>
pub fn surface(self, surface: SurfaceKHR) -> SwapchainCreateInfoKHR<'a>
pub fn min_image_count(self, min_image_count: u32) -> SwapchainCreateInfoKHR<'a>
pub fn image_format(self, image_format: Format) -> SwapchainCreateInfoKHR<'a>
pub fn image_color_space( self, image_color_space: ColorSpaceKHR, ) -> SwapchainCreateInfoKHR<'a>
pub fn image_extent(self, image_extent: Extent2D) -> SwapchainCreateInfoKHR<'a>
pub fn image_array_layers( self, image_array_layers: u32, ) -> SwapchainCreateInfoKHR<'a>
pub fn image_usage( self, image_usage: ImageUsageFlags, ) -> SwapchainCreateInfoKHR<'a>
pub fn image_sharing_mode( self, image_sharing_mode: SharingMode, ) -> SwapchainCreateInfoKHR<'a>
pub fn queue_family_indices( self, queue_family_indices: &'a [u32], ) -> SwapchainCreateInfoKHR<'a>
pub fn pre_transform( self, pre_transform: SurfaceTransformFlagsKHR, ) -> SwapchainCreateInfoKHR<'a>
pub fn composite_alpha( self, composite_alpha: CompositeAlphaFlagsKHR, ) -> SwapchainCreateInfoKHR<'a>
pub fn present_mode( self, present_mode: PresentModeKHR, ) -> SwapchainCreateInfoKHR<'a>
pub fn clipped(self, clipped: bool) -> SwapchainCreateInfoKHR<'a>
pub fn old_swapchain( self, old_swapchain: SwapchainKHR, ) -> SwapchainCreateInfoKHR<'a>
Sourcepub fn push_next<T>(self, next: &'a mut T) -> SwapchainCreateInfoKHR<'a>where
T: ExtendsSwapchainCreateInfoKHR + ?Sized,
pub fn push_next<T>(self, next: &'a mut T) -> SwapchainCreateInfoKHR<'a>where
T: ExtendsSwapchainCreateInfoKHR + ?Sized,
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 SwapchainCreateInfoKHR<'a>
impl<'a> Clone for SwapchainCreateInfoKHR<'a>
Source§fn clone(&self) -> SwapchainCreateInfoKHR<'a>
fn clone(&self) -> SwapchainCreateInfoKHR<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SwapchainCreateInfoKHR<'a>
Source§impl Default for SwapchainCreateInfoKHR<'_>
impl Default for SwapchainCreateInfoKHR<'_>
Source§fn default() -> SwapchainCreateInfoKHR<'_>
fn default() -> SwapchainCreateInfoKHR<'_>
Returns the “default value” for a type. Read more
impl Send for SwapchainCreateInfoKHR<'_>
impl Sync for SwapchainCreateInfoKHR<'_>
Source§impl<'a> TaggedStructure for SwapchainCreateInfoKHR<'a>
impl<'a> TaggedStructure for SwapchainCreateInfoKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::SWAPCHAIN_CREATE_INFO_KHR
Auto Trait Implementations§
impl<'a> Freeze for SwapchainCreateInfoKHR<'a>
impl<'a> RefUnwindSafe for SwapchainCreateInfoKHR<'a>
impl<'a> Unpin for SwapchainCreateInfoKHR<'a>
impl<'a> UnsafeUnpin for SwapchainCreateInfoKHR<'a>
impl<'a> UnwindSafe for SwapchainCreateInfoKHR<'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