浏览代码

Examples: More clean up. (#25184)

Michael Herzog 2 年之前
父节点
当前提交
87f696c46d
共有 3 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      examples/jsm/loaders/USDZLoader.js
  2. 1 1
      examples/webgpu_audio_processing.html
  3. 1 0
      package.json

+ 1 - 1
examples/jsm/loaders/USDZLoader.js

@@ -254,7 +254,7 @@ class USDZLoader extends Loader {
 
 			if ( id !== undefined ) {
 
-				const def = `def "%{id}"`;
+				const def = `def "${id}"`;
 
 				if ( def in data ) {
 

+ 1 - 1
examples/webgpu_audio_processing.html

@@ -48,7 +48,7 @@
 			let waveBuffer, sampleRate;
 			let waveGPUBuffer;
 			let currentAudio, currentAnalyser;
-			let analyserBuffer = new Uint8Array( 1024 );
+			const analyserBuffer = new Uint8Array( 1024 );
 			let analyserTexture;
 
 			await init();

+ 1 - 0
package.json

@@ -72,6 +72,7 @@
       "GPUShaderStage": "readonly",
       "GPUBufferUsage": "readonly",
       "GPUTextureUsage": "readonly",
+      "GPUMapMode": "readonly",
       "QUnit": "readonly",
       "Ammo":"readonly",
       "XRRigidTransform":"readonly",