Jelajahi Sumber

WebGPURenderer: Ignore diagnostic() method in Deno (#29522)

* Ignore `diagnostic()` method in deno

* fix deno webgpu diagnostic

* Ignore `diagnostic()` method in deno
Ivancing 1 tahun lalu
induk
melakukan
fb5406d850
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/renderers/webgpu/nodes/WGSLNodeBuilder.js

+ 1 - 1
src/renderers/webgpu/nodes/WGSLNodeBuilder.js

@@ -152,7 +152,7 @@ if ( /Windows/g.test( navigator.userAgent ) ) {
 
 let diagnostics = '';
 
-if ( /Firefox/g.test( navigator.userAgent ) !== true ) {
+if ( /Firefox|Deno/g.test( navigator.userAgent ) !== true ) {
 
 	diagnostics += 'diagnostic( off, derivative_uniformity );\n';
 

粤ICP备19079148号