Trait wgpu_playground::Playground[][src]

pub trait Playground: 'static + Sized {
    fn init(
        config: &SurfaceConfiguration,
        adapter: &Adapter,
        device: &Device,
        queue: &Queue
    ) -> Self;
fn resize(
        &mut self,
        config: &SurfaceConfiguration,
        device: &Device,
        queue: &Queue
    );
fn render(
        &mut self,
        view: &TextureView,
        device: &Device,
        queue: &Queue,
        spawner: &Spawner<'_>
    ); fn optional_features() -> Features { ... }
fn required_features() -> Features { ... }
fn required_downlevel_capabilities() -> DownlevelCapabilities { ... }
fn required_limits() -> Limits { ... }
fn update(&mut self, event: WindowEvent<'_>, control_flow: &mut ControlFlow) { ... } }

Required methods

Provided methods

Implementors