Struct draw2d::graphics::vulkan::swapchain::Swapchain [−][src]
pub struct Swapchain {
pub swapchain_loader: Swapchain,
pub swapchain: SwapchainKHR,
pub framebuffers: Vec<Framebuffer>,
pub render_pass: RenderPass,
pub extent: Extent2D,
pub format: Format,
pub color_space: ColorSpaceKHR,
// some fields omitted
}Expand description
Manage the swapchain and all dependent resources.
Fields
swapchain_loader: Swapchainswapchain: SwapchainKHRframebuffers: Vec<Framebuffer>render_pass: RenderPassextent: Extent2Dformat: Formatcolor_space: ColorSpaceKHRImplementations
Create a new swapchain based on the surface, physical device, and the current size of the framebuffer.
Rebuild a new swapchain using this swapchain as a reference.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Swapchain
impl UnwindSafe for Swapchain
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.