Struct pilka_dyn::ash::VkSwapchain[]

pub struct VkSwapchain {
    pub swapchain: SwapchainKHR,
    pub swapchain_loader: Swapchain,
    pub images: Vec<Image, Global>,
    pub image_views: Vec<ImageView, Global>,
    pub format: Format,
    pub info: SwapchainCreateInfoKHR,
    pub device: Arc<RawDevice>,
}

Fields

swapchain: SwapchainKHRswapchain_loader: Swapchainimages: Vec<Image, Global>image_views: Vec<ImageView, Global>format: Formatinfo: SwapchainCreateInfoKHRdevice: Arc<RawDevice>

Implementations

impl VkSwapchain

pub fn format(&self) -> Format

pub fn recreate_swapchain(
    &mut self,
    (u32, u32),
    device: &VkDevice
) -> Result<(), Result>

pub fn create_image_views(
    images: &[Image],
    format: Format,
    device: &VkDevice
) -> Result<Vec<ImageView, Global>, Result>

pub fn create_framebuffers(
    &self,
    (u32, u32),
    render_pass: &VkRenderPass,
    device: &VkDevice
) -> Result<Vec<Framebuffer, Global>, Result>

pub fn create_framebuffer(
    image_views: &[ImageView],
    (u32, u32),
    render_pass: &VkRenderPass,
    device: &VkDevice
) -> Result<Framebuffer, Result>

Trait Implementations

impl Drop for VkSwapchain

Auto Trait Implementations

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.