Skip to main content

VkSwapchainCreateInfoKHR

Struct VkSwapchainCreateInfoKHR 

Source
#[repr(C)]
pub struct VkSwapchainCreateInfoKHR {
Show 18 fields pub sType: VkStructureType, pub pNext: *const void, pub flags: VkSwapchainCreateFlagsKHR, pub surface: VkSurfaceKHR, pub minImageCount: uint32_t, pub imageFormat: VkFormat, pub imageColorSpace: VkColorSpaceKHR, pub imageExtent: VkExtent2D, pub imageArrayLayers: uint32_t, pub imageUsage: VkImageUsageFlags, pub imageSharingMode: VkSharingMode, pub queueFamilyIndexCount: uint32_t, pub pQueueFamilyIndices: *const uint32_t, pub preTransform: VkSurfaceTransformFlagsKHR, pub compositeAlpha: VkCompositeAlphaFlagsKHR, pub presentMode: VkPresentModeKHR, pub clipped: VkBool32, pub oldSwapchain: VkSwapchainKHR,
}
Expand description

VkSwapchainCreateInfoKHR

Fields§

§sType: VkStructureType§pNext: *const void§flags: VkSwapchainCreateFlagsKHR§surface: VkSurfaceKHR

The swapchain’s target surface

§minImageCount: uint32_t

Minimum number of presentation images the application needs

§imageFormat: VkFormat

Format of the presentation images

§imageColorSpace: VkColorSpaceKHR

Colorspace of the presentation images

§imageExtent: VkExtent2D

Dimensions of the presentation images

§imageArrayLayers: uint32_t

Determines the number of views for multiview/stereo presentation

§imageUsage: VkImageUsageFlags

Bits indicating how the presentation images will be used

§imageSharingMode: VkSharingMode

Sharing mode used for the presentation images

§queueFamilyIndexCount: uint32_t

Number of queue families having access to the images in case of concurrent sharing mode

§pQueueFamilyIndices: *const uint32_t

Array of queue family indices having access to the images in case of concurrent sharing mode

§preTransform: VkSurfaceTransformFlagsKHR

The transform, relative to the device’s natural orientation, applied to the image content prior to presentation

§compositeAlpha: VkCompositeAlphaFlagsKHR

The alpha blending mode used when compositing this surface with other surfaces in the window system

§presentMode: VkPresentModeKHR

Which presentation mode to use for presents on this swap chain

§clipped: VkBool32

Specifies whether presentable images may be affected by window clip regions

§oldSwapchain: VkSwapchainKHR

Existing swap chain to replace, if any

Implementations§

Trait Implementations§

Source§

impl Chainable for VkSwapchainCreateInfoKHR

Source§

const TYPE: VkStructureType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR

The value of sType field
Source§

fn p_next(&self) -> &*const c_void

The const reference of pNext field
Source§

fn p_next_mut(&mut self) -> &mut *mut c_void

The mutable reference of pNext field
Source§

unsafe fn push_next<E: Extend<Self>>(&mut self, ex: &mut E) -> &mut Self

Push the next struct to the chain
Source§

unsafe fn next(&self) -> Option<&VkBaseInStructure>

Get the next struct in the chain
Source§

unsafe fn next_mut(&mut self) -> Option<&mut VkBaseOutStructure>

Get the next struct in the chain
Source§

unsafe fn upcast(&self) -> &VkBaseInStructure

Upcast the struct to VkBaseInStructure
Source§

unsafe fn upcast_mut(&mut self) -> &mut VkBaseOutStructure

Upcast the struct to VkBaseOutStructure
Source§

impl Clone for VkSwapchainCreateInfoKHR

Source§

fn clone(&self) -> VkSwapchainCreateInfoKHR

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VkSwapchainCreateInfoKHR

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VkSwapchainCreateInfoKHR

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for VkSwapchainCreateInfoKHR

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkDeviceGroupSwapchainCreateInfoKHR

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkImageCompressionControlEXT

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkImageFormatListCreateInfo

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSurfaceFullScreenExclusiveInfoEXT

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSurfaceFullScreenExclusiveWin32InfoEXT

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSwapchainCounterCreateInfoEXT

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSwapchainDisplayNativeHdrCreateInfoAMD

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSwapchainLatencyCreateInfoNV

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSwapchainPresentBarrierCreateInfoNV

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSwapchainPresentModesCreateInfoKHR

Source§

impl Extend<VkSwapchainCreateInfoKHR> for VkSwapchainPresentScalingCreateInfoKHR

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.