Struct ash::vk::definitions::SwapchainCreateInfoKHR
source · #[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: Bool32,
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: Bool32
§old_swapchain: SwapchainKHR
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> SwapchainCreateInfoKHR<'a>
impl<'a> SwapchainCreateInfoKHR<'a>
pub fn flags(self, flags: SwapchainCreateFlagsKHR) -> Self
pub fn surface(self, surface: SurfaceKHR) -> Self
pub fn min_image_count(self, min_image_count: u32) -> Self
pub fn image_format(self, image_format: Format) -> Self
pub fn image_color_space(self, image_color_space: ColorSpaceKHR) -> Self
pub fn image_extent(self, image_extent: Extent2D) -> Self
pub fn image_array_layers(self, image_array_layers: u32) -> Self
pub fn image_usage(self, image_usage: ImageUsageFlags) -> Self
pub fn image_sharing_mode(self, image_sharing_mode: SharingMode) -> Self
pub fn queue_family_indices(self, queue_family_indices: &'a [u32]) -> Self
pub fn pre_transform(self, pre_transform: SurfaceTransformFlagsKHR) -> Self
pub fn composite_alpha(self, composite_alpha: CompositeAlphaFlagsKHR) -> Self
pub fn present_mode(self, present_mode: PresentModeKHR) -> Self
pub fn clipped(self, clipped: bool) -> Self
pub fn old_swapchain(self, old_swapchain: SwapchainKHR) -> Self
sourcepub fn push_next<T: ExtendsSwapchainCreateInfoKHR + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsSwapchainCreateInfoKHR + ?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 SwapchainCreateInfoKHR<'a>
impl<'a> Clone for SwapchainCreateInfoKHR<'a>
source§fn clone(&self) -> SwapchainCreateInfoKHR<'a>
fn clone(&self) -> SwapchainCreateInfoKHR<'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 SwapchainCreateInfoKHR<'a>
impl<'a> Debug for SwapchainCreateInfoKHR<'a>
source§impl Default for SwapchainCreateInfoKHR<'_>
impl Default for SwapchainCreateInfoKHR<'_>
source§impl<'a> TaggedStructure for SwapchainCreateInfoKHR<'a>
impl<'a> TaggedStructure for SwapchainCreateInfoKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::SWAPCHAIN_CREATE_INFO_KHR
impl<'a> Copy for SwapchainCreateInfoKHR<'a>
impl Send for SwapchainCreateInfoKHR<'_>
impl Sync for SwapchainCreateInfoKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for SwapchainCreateInfoKHR<'a>
impl<'a> RefUnwindSafe for SwapchainCreateInfoKHR<'a>
impl<'a> Unpin 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
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
)