pub struct Instance {
wsi: WindowSystemInterface,
flags: InstanceFlags,
inner: Mutex<Inner>,
}
Fields§
§wsi: WindowSystemInterface
§flags: InstanceFlags
§inner: Mutex<Inner>
Implementations§
source§impl Instance
impl Instance
pub fn raw_display(&self) -> Display
sourcepub fn egl_version(&self) -> (i32, i32)
pub fn egl_version(&self) -> (i32, i32)
Returns the version of the EGL display.
pub fn egl_config(&self) -> Config
Trait Implementations§
source§impl DynResource for Instance
impl DynResource for Instance
source§impl Instance for Instance
impl Instance for Instance
type A = Api
unsafe fn init(desc: &InstanceDescriptor<'_>) -> Result<Self, InstanceError>
unsafe fn create_surface( &self, display_handle: RawDisplayHandle, window_handle: RawWindowHandle, ) -> Result<Surface, InstanceError>
source§unsafe fn enumerate_adapters(
&self,
_surface_hint: Option<&Surface>,
) -> Vec<ExposedAdapter<Api>>
unsafe fn enumerate_adapters( &self, _surface_hint: Option<&Surface>, ) -> Vec<ExposedAdapter<Api>>
surface_hint
is only used by the GLES backend targeting WebGL2impl Send for Instance
impl Sync for Instance
Auto Trait Implementations§
impl !Freeze for Instance
impl !RefUnwindSafe for Instance
impl Unpin 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