You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wgpu/src/backend/webgpu.rs
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1125,12 +1125,15 @@ impl ContextWebGpu {
1125
1125
context
1126
1126
.dyn_into()
1127
1127
.map_err(|actual| crate::CreateSurfaceError{
1128
-
inner:crate::CreateSurfaceErrorKind::Web(
1129
-
format!(
1130
-
"canvas.getContext() returned a value that did not coerce to GPUCanvasContext. This is likely because WebGPU is disabled in this browser. Expected: GPUCanvasContext, Actual: {}",
1128
+
inner:crate::CreateSurfaceErrorKind::Web(format!(
1129
+
concat!(
1130
+
"`canvas.getContext()` returned a value that did not coerce to ",
1131
+
"`GPUCanvasContext`. ",
1132
+
"This is likely because WebGPU is disabled in this browser. ",
0 commit comments