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 fn next_frame(
&self,
signal_semaphore: &BinarySemaphore
) -> Result<SwapchainFrame, AscheError>
[src]
pub fn next_frame(
&self,
signal_semaphore: &BinarySemaphore
) -> Result<SwapchainFrame, AscheError>
[src]Gets the next frame the program can render into.
pub fn queue_frame(
&self,
graphics_queue: &GraphicsQueue,
frame: SwapchainFrame,
wait_semaphores: &[&BinarySemaphore]
) -> Result<(), AscheError>
[src]
pub fn queue_frame(
&self,
graphics_queue: &GraphicsQueue,
frame: SwapchainFrame,
wait_semaphores: &[&BinarySemaphore]
) -> Result<(), AscheError>
[src]Queues the frame in the presentation queue.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Swapchain
impl !UnwindSafe for Swapchain