pub struct SwapchainCreateInfo<'r, 'n>(/* private fields */);
Implementations§
Source§impl<'r, 'n> SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> SwapchainCreateInfo<'r, 'n>
pub fn new( surface: &'r (impl VkHandle<Handle = VkSurfaceKHR> + ?Sized), min_image_count: u32, format: VkSurfaceFormatKHR, extent: VkExtent2D, usage: ImageUsageFlags, ) -> Self
pub const unsafe fn from_raw(raw: VkSwapchainCreateInfoKHR) -> Self
pub const fn into_raw(self) -> VkSwapchainCreateInfoKHR
pub const fn with_next(self, next: &'n (impl VulkanStructure + ?Sized)) -> Self
pub const fn array_layers(self, layers: u32) -> Self
pub const fn exclusive(self) -> Self
Sourcepub const fn pre_transform(self, tf: SurfaceTransformFlags) -> Self
pub const fn pre_transform(self, tf: SurfaceTransformFlags) -> Self
Default: Inherit
Sourcepub const fn composite_alpha(self, a: CompositeAlphaFlags) -> Self
pub const fn composite_alpha(self, a: CompositeAlphaFlags) -> Self
Default: Inherit
Sourcepub const fn present_mode(self, mode: PresentMode) -> Self
pub const fn present_mode(self, mode: PresentMode) -> Self
Default: FIFO
Sourcepub const fn enable_clip(self) -> Self
pub const fn enable_clip(self) -> Self
Enables whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface which aren’t visible
Trait Implementations§
Source§impl<'r, 'n> Clone for SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> Clone for SwapchainCreateInfo<'r, 'n>
Source§fn clone(&self) -> SwapchainCreateInfo<'r, 'n>
fn clone(&self) -> SwapchainCreateInfo<'r, 'n>
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 moreAuto Trait Implementations§
impl<'r, 'n> Freeze for SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> !RefUnwindSafe for SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> !Send for SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> !Sync for SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> Unpin for SwapchainCreateInfo<'r, 'n>
impl<'r, 'n> !UnwindSafe for SwapchainCreateInfo<'r, 'n>
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