@babylonjs/core 6.45.0 → 6.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Engines/engine.d.ts +1 -1
- package/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +2 -15
- package/Engines/webgpuEngine.js.map +1 -1
- package/Materials/Node/nodeMaterial.js +3 -0
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/package.json +1 -1
package/Engines/webgpuEngine.js
CHANGED
|
@@ -366,16 +366,8 @@ export class WebGPUEngine extends Engine {
|
|
|
366
366
|
return this._tintWASM
|
|
367
367
|
? this._tintWASM.initTwgsl(twgslOptions ?? this._options?.twgslOptions).then(() => {
|
|
368
368
|
return navigator.gpu.requestAdapter(this._options);
|
|
369
|
-
}, (msg) => {
|
|
370
|
-
Logger.Error("Can not initialize twgsl!");
|
|
371
|
-
Logger.Error(msg);
|
|
372
|
-
throw Error("WebGPU initializations stopped.");
|
|
373
369
|
})
|
|
374
370
|
: navigator.gpu.requestAdapter(this._options);
|
|
375
|
-
}, (msg) => {
|
|
376
|
-
Logger.Error("Can not initialize glslang!");
|
|
377
|
-
Logger.Error(msg);
|
|
378
|
-
throw Error("WebGPU initializations stopped.");
|
|
379
371
|
})
|
|
380
372
|
.then((adapter) => {
|
|
381
373
|
if (!adapter) {
|
|
@@ -456,9 +448,6 @@ export class WebGPUEngine extends Engine {
|
|
|
456
448
|
});
|
|
457
449
|
});
|
|
458
450
|
}
|
|
459
|
-
}, (e) => {
|
|
460
|
-
Logger.Error("Could not retrieve a WebGPU device.");
|
|
461
|
-
Logger.Error(e);
|
|
462
451
|
})
|
|
463
452
|
.then(() => {
|
|
464
453
|
this._bufferManager = new WebGPUBufferManager(this, this._device);
|
|
@@ -504,10 +493,8 @@ export class WebGPUEngine extends Engine {
|
|
|
504
493
|
this.resize();
|
|
505
494
|
})
|
|
506
495
|
.catch((e) => {
|
|
507
|
-
Logger.Error("
|
|
508
|
-
|
|
509
|
-
// eslint-disable-next-line no-console
|
|
510
|
-
console?.trace?.();
|
|
496
|
+
Logger.Error("A fatal error occurred during WebGPU creation/initialization.");
|
|
497
|
+
throw e;
|
|
511
498
|
});
|
|
512
499
|
}
|
|
513
500
|
_initGlslang(glslangOptions) {
|