pub enum RequestedGraphicsAPI {
OpenGL(RequestedOpenGLVersion),
Metal,
Vulkan,
Direct3D,
}
Expand description
Internal enum specify which graphics API should be used, when the backend selector requests that from a built-in backend.
Variants§
Trait Implementations§
Source§impl Clone for RequestedGraphicsAPI
impl Clone for RequestedGraphicsAPI
Source§fn clone(&self) -> RequestedGraphicsAPI
fn clone(&self) -> RequestedGraphicsAPI
Returns a copy 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 RequestedGraphicsAPI
impl Debug for RequestedGraphicsAPI
Source§impl From<RequestedOpenGLVersion> for RequestedGraphicsAPI
impl From<RequestedOpenGLVersion> for RequestedGraphicsAPI
Source§fn from(version: RequestedOpenGLVersion) -> Self
fn from(version: RequestedOpenGLVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestedGraphicsAPI
impl PartialEq for RequestedGraphicsAPI
Source§impl TryFrom<RequestedGraphicsAPI> for RequestedOpenGLVersion
impl TryFrom<RequestedGraphicsAPI> for RequestedOpenGLVersion
Source§type Error = PlatformError
type Error = PlatformError
The type returned in the event of a conversion error.
impl StructuralPartialEq for RequestedGraphicsAPI
Auto Trait Implementations§
impl Freeze for RequestedGraphicsAPI
impl RefUnwindSafe for RequestedGraphicsAPI
impl Send for RequestedGraphicsAPI
impl Sync for RequestedGraphicsAPI
impl Unpin for RequestedGraphicsAPI
impl UnwindSafe for RequestedGraphicsAPI
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