We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2432911 commit cd60934Copy full SHA for cd60934
src/library_webgpu.js
@@ -30,8 +30,7 @@
30
// Helper functions for code generation
31
globalThis.gpu = {
32
makeInitManager: function(type) {
33
- var mgr = `WebGPU.mgr${type}`;
34
- return `${mgr} = ${mgr} || new Manager();`;
+ return `WebGPU.mgr${type} = new Manager();`;
35
},
36
37
makeReferenceRelease: function(type) {
@@ -201,7 +200,9 @@ var LibraryWebGPU = {
201
200
202
203
initManagers: () => {
204
- if (WebGPU.mgrDevice) return;
+#if ASSERTIONS
+ assert(!WebGPU.mgrDevice, 'initManagers already called');
205
+#endif
206
207
/** @constructor */
208
function Manager() {
0 commit comments