Trait wgpu_hal::DynInstance

source ·
pub trait DynInstance: DynResource {
    // Required methods
    unsafe fn create_surface(
        &self,
        display_handle: RawDisplayHandle,
        window_handle: RawWindowHandle
    ) -> Result<Box<dyn DynSurface>, InstanceError>;
    unsafe fn enumerate_adapters(
        &self,
        surface_hint: Option<&dyn DynSurface>
    ) -> Vec<DynExposedAdapter>;
}

Required Methods§

source

unsafe fn create_surface( &self, display_handle: RawDisplayHandle, window_handle: RawWindowHandle ) -> Result<Box<dyn DynSurface>, InstanceError>

source

unsafe fn enumerate_adapters( &self, surface_hint: Option<&dyn DynSurface> ) -> Vec<DynExposedAdapter>

Implementors§