Skip to content

Commit 04c35df

Browse files
committed
Doc fixes for wgpu_types::Backend::Gl.
1 parent f892b2e commit 04c35df

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

wgpu-types/src/backend.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,28 @@ pub enum Backend {
3939
/// enables it, in addition to the ordinary requirement of [`Backends::NOOP`] being set.
4040
/// This ensures that applications not desiring a non-functional backend will not receive it.
4141
Noop = 0,
42+
4243
/// Vulkan API (Windows, Linux, Android, MacOS via `vulkan-portability`/MoltenVK)
4344
Vulkan = 1,
45+
4446
/// Metal API (Apple platforms)
4547
Metal = 2,
48+
4649
/// Direct3D-12 (Windows)
4750
Dx12 = 3,
48-
/// OpenGL 3.3+ (Windows), OpenGL ES 3.0+ (Linux, Android, MacOS via Angle), and WebGL2
51+
52+
/// OpenGL 3.3+, OpenGL ES 3.0+, WebGL2.
53+
///
54+
/// - On Windows, this is always OpenGL.
55+
///
56+
/// - On Linux, we create a full OpenGL 3.3+ context if possible (Mesa
57+
/// offers it), but if that fails we fall back to OpenGL ES.
58+
///
59+
/// - On Android and macOS with ANGLE, we get OpenGL ES.
60+
///
61+
/// - When running in a web browser, we get WebGL2.
4962
Gl = 4,
63+
5064
/// WebGPU in the browser
5165
BrowserWebGpu = 5,
5266
}

0 commit comments

Comments
 (0)