diff --git a/examples/webgpu_compute.html b/examples/webgpu_compute.html index dfc9cc895f1100..3ae6513e2d4d1a 100644 --- a/examples/webgpu_compute.html +++ b/examples/webgpu_compute.html @@ -99,8 +99,8 @@ const pointer = uniform( pointerVector ); const limit = uniform( scaleVector ); - const position = temp( vec3() ); - assign( position, add( particle, velocity ) ).build( builder ); // workaround + const position = temp( add( particle, velocity ) ); + position.build( builder ); assign( velocity.x, cond( greaterThanEqual( abs( position.x ), limit.x ), negate( velocity.x ), velocity.x ) ).build( builder ); assign( velocity.y, cond( greaterThanEqual( abs( position.y ), limit.y ), negate( velocity.y ), velocity.y ) ).build( builder );