Struct asche::Swapchain [−][src]
pub struct Swapchain { /* fields omitted */ }
Expand description
Abstracts a Vulkan swapchain.
Implementations
Recreates the swapchain. Needs to be called if the surface has changed.
Returns the frame count of the swapchain.
pub unsafe fn next_frame(
&self,
signal_semaphore: &BinarySemaphore
) -> Result<SwapchainFrame, AscheError>
pub unsafe fn next_frame(
&self,
signal_semaphore: &BinarySemaphore
) -> Result<SwapchainFrame, AscheError>
Gets the next frame the program can render into.
pub unsafe fn queue_frame(
&self,
graphics_queue: &GraphicsQueue,
frame: SwapchainFrame,
wait_semaphores: &[&BinarySemaphore]
) -> Result<(), AscheError>
pub unsafe fn queue_frame(
&self,
graphics_queue: &GraphicsQueue,
frame: SwapchainFrame,
wait_semaphores: &[&BinarySemaphore]
) -> Result<(), AscheError>
Queues the frame in the presentation queue.