Skip to main content

SurfaceInterface

Trait SurfaceInterface 

pub trait SurfaceInterface: CommonTraits {
    // Required methods
    fn get_capabilities(&self, adapter: &DispatchAdapter) -> SurfaceCapabilities;
    fn configure(
        &self,
        device: &DispatchDevice,
        config: &SurfaceConfiguration<Vec<TextureFormat>>,
    );
    fn get_current_texture(
        &self,
    ) -> (Option<DispatchTexture>, SurfaceStatus, DispatchSurfaceOutputDetail);
}

Required Methods§

Implementors§