Struct sierra::backend::SurfaceImage
source · pub struct SurfaceImage<'a> { /* private fields */ }
Implementations§
source§impl SurfaceImage<'_>
impl SurfaceImage<'_>
sourcepub fn wait_signal(&mut self) -> [&mut Semaphore; 2]
pub fn wait_signal(&mut self) -> [&mut Semaphore; 2]
Semaphores that should be waited upon before and signaled after last image access.
sourcepub fn is_optimal(&self) -> bool
pub fn is_optimal(&self) -> bool
Returns true of this image is optimal for the surface. If image is not optimal, user still can render to it and must present.
For most users this is the hint that surface should be reconfigured.