[][src]Struct bedrock::SwapchainBuilder

pub struct SwapchainBuilder<'d>(_, _);

Builder object to construct a Swapchain

Methods

impl<'d> SwapchainBuilder<'d>[src]

pub fn new(
    surface: &'d Surface,
    min_image_count: u32,
    format: &VkSurfaceFormatKHR,
    extent: &Extent2D,
    usage: ImageUsage
) -> Self
[src]

pub fn array_layers(&mut self, layers: u32) -> &mut Self[src]

pub fn share(&mut self, queue_families: &[u32]) -> &mut Self[src]

pub fn pre_transform(&mut self, tf: SurfaceTransform) -> &mut Self[src]

pub fn composite_alpha(&mut self, a: CompositeAlpha) -> &mut Self[src]

pub fn present_mode(&mut self, mode: PresentMode) -> &mut Self[src]

pub fn enable_clip(&mut self) -> &mut Self[src]

Enables whether the Vulkan implementation is allowed to discard rendering operations that affect regions of the surface which aren't visible

pub fn create(&self, device: &Device) -> Result<Swapchain>[src]

Create a swapchain

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_DEVICE_LOST
  • VK_ERROR_SURFACE_LOST_KHR
  • VK_ERROR_NATIVE_WINDOW_IN_USE_KHR

Auto Trait Implementations

impl<'d> !RefUnwindSafe for SwapchainBuilder<'d>

impl<'d> !Send for SwapchainBuilder<'d>

impl<'d> !Sync for SwapchainBuilder<'d>

impl<'d> Unpin for SwapchainBuilder<'d>

impl<'d> !UnwindSafe for SwapchainBuilder<'d>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.