Browse Source

WebGPURenderer: Clean up.

Mugen87 4 years ago
parent
commit
87f5644707

+ 0 - 1
examples/jsm/renderers/webgpu/WebGPUBindings.js

@@ -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';

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUComputePipelines.js

@@ -45,7 +45,7 @@ class WebGPUComputePipelines {
 				module: moduleCompute,
 				entryPoint: 'main'
 			};
-	
+
 			pipeline = device.createComputePipeline( {
 				computeStage: computeStage
 			} );

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUStorageBuffer.js

@@ -2,7 +2,7 @@ import WebGPUBinding from './WebGPUBinding.js';
 
 class WebGPUStorageBuffer extends WebGPUBinding {
 
-	constructor ( name, attribute ) {
+	constructor( name, attribute ) {
 
 		super( name );
 

+ 3 - 3
examples/webgpu_compute.html

@@ -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 );