Trait wgpu_hal::DynSurface

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

Required Methods§

source

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

source

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

source

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

source

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

Implementors§