pub trait RenderSurface<'s>: Sealed {
type Target: RenderTexture;
// Required methods
fn wgpu_surface(&self, _token: Token) -> Option<&Surface<'s>>;
fn get_default_config(
&self,
adapter: &Adapter,
width: u32,
height: u32,
_token: Token,
) -> Option<SurfaceConfiguration>;
fn configure(
&mut self,
device: &Device,
config: &SurfaceConfiguration,
_token: Token,
);
fn get_current_texture(&self, _token: Token) -> Option<Self::Target>;
}
Expand description
A surface that can be rendered to.