Kaynağa Gözat

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

* Ignore `diagnostic()` method in deno

* fix deno webgpu diagnostic

* Ignore `diagnostic()` method in deno
Ivancing 1 yıl önce
ebeveyn
işleme
fb5406d850

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

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

粤ICP备19079148号