#[repr(C)]pub enum GPUComputingBackend {
all = 0,
default_backend = 1,
vulkan = 2,
opengl = 3,
metal = 4,
direct_x12 = 5,
webgpu = 6,
highest_support = 7,
lowest_support = 8,
}Expand description
computing backends of the api
Variants§
all = 0
targets all of the backends
default_backend = 1
default backend
vulkan = 2
Supported on Windows, Linux/Android, and macOS/iOS via Vulkan Portability (with the Vulkan feature enabled)
opengl = 3
Supported on Linux/Android, the web through webassembly via WebGL, and Windows and macOS/iOS via ANGLE
metal = 4
MacOS & iOS only
direct_x12 = 5
Windows +10 only
webgpu = 6
browser WebGPU
highest_support = 7
targets VULKAN METALDX12 BROWSER_WEBGPU
lowest_support = 8
targets OpenGL backend
Trait Implementations§
Source§impl Clone for GPUComputingBackend
impl Clone for GPUComputingBackend
Source§fn clone(&self) -> GPUComputingBackend
fn clone(&self) -> GPUComputingBackend
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GPUComputingBackend
impl RefUnwindSafe for GPUComputingBackend
impl Send for GPUComputingBackend
impl Sync for GPUComputingBackend
impl Unpin for GPUComputingBackend
impl UnwindSafe for GPUComputingBackend
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)