wgpu::custom

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);
}
Available on custom only.

Required Methods§

Implementors§

Source§

impl SurfaceInterface for CoreSurface

Available on wgpu_core only.