Explorar o código

Fix Uint32Array initialization (#32011)

Nathan Bierema hai 6 meses
pai
achega
8c5163671f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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号