Struct pilka_ash::VkSwapchain
source · [−]pub struct VkSwapchain {
pub swapchain: SwapchainKHR,
pub swapchain_loader: Swapchain,
pub images: Vec<Image>,
pub image_views: Vec<ImageView>,
pub format: Format,
pub info: SwapchainCreateInfoKHR,
pub device: Arc<RawDevice>,
}
Fields
swapchain: SwapchainKHR
swapchain_loader: Swapchain
images: Vec<Image>
image_views: Vec<ImageView>
format: Format
info: SwapchainCreateInfoKHR
device: Arc<RawDevice>
Implementations
sourceimpl VkSwapchain
impl VkSwapchain
pub fn format(&self) -> Format
pub fn recreate_swapchain(
&mut self,
(width, height): (u32, u32),
device: &VkDevice
) -> VkResult<()>
pub fn create_image_views(
images: &[Image],
format: Format,
device: &VkDevice
) -> VkResult<Vec<ImageView>>
pub fn create_framebuffers(
&self,
(width, height): (u32, u32),
render_pass: &VkRenderPass,
device: &VkDevice
) -> VkResult<Vec<Framebuffer>>
pub fn create_framebuffer(
image_views: &[ImageView],
(width, height): (u32, u32),
render_pass: &VkRenderPass,
device: &VkDevice
) -> VkResult<Framebuffer>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VkSwapchain
impl !Send for VkSwapchain
impl !Sync for VkSwapchain
impl Unpin for VkSwapchain
impl UnwindSafe for VkSwapchain
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more