@@ -1,4 +1,3 @@
-import WebGPUStorageBuffer from './WebGPUStorageBuffer.js';
import WebGPUUniformsGroup from './WebGPUUniformsGroup.js';
import { FloatUniform, Matrix3Uniform, Matrix4Uniform } from './WebGPUUniform.js';
import WebGPUSampler from './WebGPUSampler.js';
@@ -45,7 +45,7 @@ class WebGPUComputePipelines {
module: moduleCompute,
entryPoint: 'main'
};
-
+
pipeline = device.createComputePipeline( {
computeStage: computeStage
} );
@@ -2,7 +2,7 @@ import WebGPUBinding from './WebGPUBinding.js';
class WebGPUStorageBuffer extends WebGPUBinding {
- constructor ( name, attribute ) {
+ constructor( name, attribute ) {
super( name );
@@ -26,7 +26,7 @@
const computeParams = [];
- init().then( animate ).catch( onInitError );
+ init().then( animate ).catch( error );
async function init() {
@@ -187,7 +187,7 @@
( x / width - 0.5 ) * 2.0,
( - y / height + 0.5 ) * 2.0
);
}
function animate() {
@@ -199,7 +199,7 @@
- function onInitError( error ) {
+ function error( error ) {
console.error( error );