pub struct Instance;Trait Implementations§
Source§impl Instance<Backend> for Instance
impl Instance<Backend> for Instance
Source§fn create(name: &str, version: u32) -> Result<Self, UnsupportedBackend>
fn create(name: &str, version: u32) -> Result<Self, UnsupportedBackend>
Create a new instance. Read more
Source§fn enumerate_adapters(&self) -> Vec<Adapter<Backend>>
fn enumerate_adapters(&self) -> Vec<Adapter<Backend>>
Return all available graphics adapters.
Source§unsafe fn create_surface(
&self,
raw_window_handle: &impl HasRawWindowHandle,
) -> Result<Surface, InitError>
unsafe fn create_surface( &self, raw_window_handle: &impl HasRawWindowHandle, ) -> Result<Surface, InitError>
Source§unsafe fn destroy_surface(&self, _surface: Surface)
unsafe fn destroy_surface(&self, _surface: Surface)
Destroy a surface, freeing the resources associated with it and
releasing it from this graphics API. Read more
Source§unsafe fn create_display_plane_surface(
&self,
_display_plane: &DisplayPlane<'_, Backend>,
_plane_stack_index: u32,
_transformation: SurfaceTransform,
_alpha: DisplayPlaneAlpha,
_image_extent: Extent2D,
) -> Result<Surface, DisplayPlaneSurfaceError>
unsafe fn create_display_plane_surface( &self, _display_plane: &DisplayPlane<'_, Backend>, _plane_stack_index: u32, _transformation: SurfaceTransform, _alpha: DisplayPlaneAlpha, _image_extent: Extent2D, ) -> Result<Surface, DisplayPlaneSurfaceError>
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more