Browse Source

Fix Uint32Array initialization (#32011)

Nathan Bierema 4 months ago
parent
commit
8c5163671f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/webgpu_compute_sort_bitonic.html

+ 1 - 1
examples/webgpu_compute_sort_bitonic.html

@@ -396,7 +396,7 @@
 
 				const scene = new THREE.Scene();
 
-				const infoArray = new Uint32Array( 3, 2, 2 );
+				const infoArray = new Uint32Array( [ 3, 2, 2 ] );
 				const infoBuffer = new THREE.StorageInstancedBufferAttribute( infoArray, 1 );
 				const infoStorage = storage( infoBuffer, 'uint', infoBuffer.count ).setPBO( true ).setName( 'TheInfo' );
 

粤ICP备19079148号