pub struct GLVersion {
pub major: u8,
pub minor: u8,
}
Expand description
Describes the OpenGL version that is requested when a context is created.
Since OpenGL and OpenGL ES have different version numbering schemes, the valid values here
depend on the value of Device::gl_api()
.
Fields§
§major: u8
The major OpenGL version (e.g. 4 in 4.2).
minor: u8
The minor OpenGL version (e.g. 2 in 4.2).
Implementations§
Trait Implementations§
impl Copy for GLVersion
impl StructuralPartialEq for GLVersion
Auto Trait Implementations§
impl Freeze for GLVersion
impl RefUnwindSafe for GLVersion
impl Send for GLVersion
impl Sync for GLVersion
impl Unpin for GLVersion
impl UnwindSafe for GLVersion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)