Trait SwapchainSubmissionSemaphoreGuard

Source
pub(super) trait SwapchainSubmissionSemaphoreGuard {
    // Required methods
    fn set_used_fence_value(&mut self, value: u64);
    fn get_acquire_wait_semaphore(&mut self) -> Option<SemaphoreType>;
    fn get_submit_signal_semaphore(
        &mut self,
        device: &DeviceShared,
    ) -> Result<SemaphoreType, DeviceError>;
}
Expand description

Guard type for managing swapchain submission semaphores.

Required Methods§

Source

fn set_used_fence_value(&mut self, value: u64)

Sets the Fence value for this submission.

Source

fn get_acquire_wait_semaphore(&mut self) -> Option<SemaphoreType>

Gets semaphores to wait on before doing GPU work for this swapchain texture.

Source

fn get_submit_signal_semaphore( &mut self, device: &DeviceShared, ) -> Result<SemaphoreType, DeviceError>

Gets the semaphore to signal when GPU work for this swapchain texture is complete.

Implementors§