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);
}
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)
Implementors§
impl SurfaceInterface for CoreSurface
Available on
wgpu_core
only.