Expand description
Possible backends. Currently, only OpenGL and OpenGL ES Core specs are supported, but this lets you specify which to use as well as the version numbers.
Defaults:
Backend::OpenGL {
major: 3,
minor: 2,
}
Variants
OpenGL
Defaults to OpenGL 3.2, which is supported by basically every machine since 2009 or so (apart from the ones that don’t).
OpenGLES
OpenGL ES, defaults to 3.0. Used for phones and other mobile
devices. Using something older
than 3.0 starts to running into sticky limitations, particularly
with instanced drawing (used for SpriteBatch
), but might be
possible.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Backend
impl<'de> Deserialize<'de> for Backend
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<Backend> for GlBackendSpec
impl From<Backend> for GlBackendSpec
impl Copy for Backend
impl Eq for Backend
impl StructuralEq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more