Trait rerun::external::eframe::egui_wgpu::wgpu::hal::DynSurface

pub trait DynSurface: DynResource {
    // Required methods
    unsafe fn configure(
        &self,
        device: &(dyn DynDevice + 'static),
        config: &SurfaceConfiguration,
    ) -> Result<(), SurfaceError>;
    unsafe fn unconfigure(&self, device: &(dyn DynDevice + 'static));
    unsafe fn acquire_texture(
        &self,
        timeout: Option<Duration>,
        fence: &(dyn DynFence + 'static),
    ) -> Result<Option<DynAcquiredSurfaceTexture>, SurfaceError>;
    unsafe fn discard_texture(&self, texture: Box<dyn DynSurfaceTexture>);
}

Required Methods§

unsafe fn configure( &self, device: &(dyn DynDevice + 'static), config: &SurfaceConfiguration, ) -> Result<(), SurfaceError>

unsafe fn unconfigure(&self, device: &(dyn DynDevice + 'static))

unsafe fn acquire_texture( &self, timeout: Option<Duration>, fence: &(dyn DynFence + 'static), ) -> Result<Option<DynAcquiredSurfaceTexture>, SurfaceError>

unsafe fn discard_texture(&self, texture: Box<dyn DynSurfaceTexture>)

Implementors§

§

impl<S> DynSurface for S
where S: Surface + DynResource,