pub enum GraphicsBackend {
SoftwareCpu,
Metal,
Vulkan,
Direct3D12,
Direct3D11,
OpenGlEs,
WebGpu,
WebGl2,
Canvas2d,
Headless,
}Expand description
Concrete low-level graphics backend driving frame presentation.
Variants§
SoftwareCpu
Portable SIMD-friendly CPU software rasterizer.
Metal
Apple Metal (macOS, iOS, iPadOS).
Vulkan
Khronos Vulkan (Windows, Linux, Android).
Direct3D12
Microsoft Direct3D 12 (Windows).
Direct3D11
Microsoft Direct3D 11 (Windows fallback).
OpenGlEs
OpenGL ES 3.0 (Android / embedded Linux fallback).
WebGpu
Browser WebGPU API.
WebGl2
Browser WebGL 2 API.
Canvas2d
Browser HTML5 Canvas 2D software surface blit.
Headless
Deterministic offscreen headless backend for automated pixel tests.
Trait Implementations§
Source§impl Clone for GraphicsBackend
impl Clone for GraphicsBackend
impl Copy for GraphicsBackend
Source§impl Debug for GraphicsBackend
impl Debug for GraphicsBackend
Source§impl Default for GraphicsBackend
impl Default for GraphicsBackend
impl Eq for GraphicsBackend
Source§impl Hash for GraphicsBackend
impl Hash for GraphicsBackend
Source§impl Ord for GraphicsBackend
impl Ord for GraphicsBackend
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GraphicsBackend
impl PartialEq for GraphicsBackend
Source§impl PartialOrd for GraphicsBackend
impl PartialOrd for GraphicsBackend
impl StructuralPartialEq for GraphicsBackend
Auto Trait Implementations§
impl Forget for GraphicsBackend
impl Freeze for GraphicsBackend
impl Move for GraphicsBackend
impl RefUnwindSafe for GraphicsBackend
impl Send for GraphicsBackend
impl Sync for GraphicsBackend
impl Unpin for GraphicsBackend
impl UnsafeUnpin for GraphicsBackend
impl UnwindSafe for GraphicsBackend
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