Trait SurfaceTextureMetadata

Source
pub(super) trait SurfaceTextureMetadata:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn get_semaphore_guard(
        &self,
    ) -> Box<dyn SwapchainSubmissionSemaphoreGuard + '_>;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Swapchain specific metadata associated with a surface texture.

Required Methods§

Source

fn get_semaphore_guard(&self) -> Box<dyn SwapchainSubmissionSemaphoreGuard + '_>

Returns a guard which can yield the semaphores needed for submission using this swapchain texture.

Source

fn as_any(&self) -> &dyn Any

Allows downcasting to the concrete type.

Implementors§