Skip to content

Commit d19f098

Browse files
committed
Consistent "WebGL2".
1 parent a96ddcd commit d19f098

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

wgpu/src/backend/web.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ impl Context {
10391039

10401040
/// Common portion of public `instance_create_surface_from_*` functions.
10411041
///
1042-
/// Note: Analogous code also exists in the WebGL 2 backend at
1042+
/// Note: Analogous code also exists in the WebGL2 backend at
10431043
/// `wgpu_hal::gles::web::Instance`.
10441044
fn create_surface_from_context(
10451045
&self,

wgpu/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ impl Instance {
18321832
///
18331833
/// # Errors
18341834
///
1835-
/// - On WebGL 2: Will return an error if the browser does not support WebGL 2,
1835+
/// - On WebGL2: Will return an error if the browser does not support WebGL2,
18361836
/// or declines to provide GPU access (such as due to a resource shortage).
18371837
///
18381838
/// # Panics
@@ -1886,7 +1886,7 @@ impl Instance {
18861886
///
18871887
/// # Errors
18881888
///
1889-
/// - On WebGL 2: Will return an error if the browser does not support WebGL 2,
1889+
/// - On WebGL2: Will return an error if the browser does not support WebGL2,
18901890
/// or declines to provide GPU access (such as due to a resource shortage).
18911891
#[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))]
18921892
pub fn create_surface_from_canvas(
@@ -1906,7 +1906,7 @@ impl Instance {
19061906
///
19071907
/// # Errors
19081908
///
1909-
/// - On WebGL 2: Will return an error if the browser does not support WebGL 2,
1909+
/// - On WebGL2: Will return an error if the browser does not support WebGL2,
19101910
/// or declines to provide GPU access (such as due to a resource shortage).
19111911
#[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))]
19121912
pub fn create_surface_from_offscreen_canvas(

0 commit comments

Comments
 (0)