pub enum Api {
Best,
Vulkan,
Metal,
DirectX12,
OpenGL,
WebGPU,
}Expand description
A hardware graphics API.
Variants§
Best
Auto-detect and choose the best available graphics Api.
Vulkan
Vulkan API (Windows, Linux, Android, MacOS via vulkan-portability/MoltenVK)
Metal
Metal API (Apple platforms)
DirectX12
Direct3D-12 (Windows)
OpenGL
OpenGL 3.3+ (Windows), OpenGL ES 3.0+ (Linux, Android, MacOS via Angle), and WebGL2
WebGPU
WebGPU (Web Browser)
Trait Implementations§
impl Copy for Api
impl Eq for Api
impl StructuralPartialEq for Api
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnsafeUnpin for Api
impl UnwindSafe for Api
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