wgpu::dispatch

Trait SurfaceInterface

source
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§

Implementors§

source§

impl SurfaceInterface for CoreSurface

Available on wgpu_core only.