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