#[non_exhaustive]pub struct EglContextDescriptor {
pub display: NativePointer,
pub config: NativePointer,
pub share_context: NativePointer,
pub client_api: OpenGLClientApi,
pub get_proc_address: NativePointer,
pub ownership: OpenGLContextOwnership,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.display: NativePointer§config: NativePointerBorrowed EGLContext whose share group the session context joins.
Required under shared ownership, where the session also takes its client
API from this context. A dedicated session joins no share group, so it
is null there and names client_api instead.
client_api: OpenGLClientApiClient API the session creates its context for. Required under dedicated
ownership. A shared session queries
share_context for it, so this is ignored there.
get_proc_address: NativePointer§ownership: OpenGLContextOwnershipWhether the session shares its thread with host graphics work.
Implementations§
Source§impl EglContextDescriptor
impl EglContextDescriptor
pub fn new( display: NativePointer, config: NativePointer, share_context: NativePointer, ) -> Self
Trait Implementations§
Source§impl Clone for EglContextDescriptor
impl Clone for EglContextDescriptor
Source§fn clone(&self) -> EglContextDescriptor
fn clone(&self) -> EglContextDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EglContextDescriptor
impl Debug for EglContextDescriptor
Source§impl Default for EglContextDescriptor
impl Default for EglContextDescriptor
Source§impl PartialEq for EglContextDescriptor
impl PartialEq for EglContextDescriptor
impl StructuralPartialEq for EglContextDescriptor
Auto Trait Implementations§
impl Freeze for EglContextDescriptor
impl RefUnwindSafe for EglContextDescriptor
impl !Send for EglContextDescriptor
impl !Sync for EglContextDescriptor
impl Unpin for EglContextDescriptor
impl UnsafeUnpin for EglContextDescriptor
impl UnwindSafe for EglContextDescriptor
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