[−][src]Struct bedrock::SwapchainBuilder
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]
surface: &'d Surface,
min_image_count: u32,
format: &VkSurfaceFormatKHR,
extent: &Extent2D,
usage: ImageUsage
) -> Self
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,