|
@@ -6,8 +6,6 @@ class WebGPUUniformsGroup extends WebGPUBinding {
|
|
|
|
|
|
super();
|
|
|
|
|
|
- this.name = '';
|
|
|
-
|
|
|
// the order of uniforms in this array must match the order of uniforms in the shader
|
|
|
|
|
|
this.uniforms = [];
|
|
@@ -26,12 +24,6 @@ class WebGPUUniformsGroup extends WebGPUBinding {
|
|
|
|
|
|
}
|
|
|
|
|
|
- setName( name ) {
|
|
|
-
|
|
|
- this.name = name;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
addUniform( uniform ) {
|
|
|
|
|
|
this.uniforms.push( uniform );
|
|
@@ -62,23 +54,6 @@ class WebGPUUniformsGroup extends WebGPUBinding {
|
|
|
|
|
|
}
|
|
|
|
|
|
- copy( source ) {
|
|
|
-
|
|
|
- this.name = source.name;
|
|
|
-
|
|
|
- this.uniforms.length = 0;
|
|
|
- this.uniforms.push( ...source.uniforms );
|
|
|
-
|
|
|
- return this;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- clone() {
|
|
|
-
|
|
|
- return new this.constructor().copy( this );
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
getByteLength() {
|
|
|
|
|
|
let byteLength = 0;
|