clone method
dynamic
clone(
- dynamic data
Implementation
clone(data) {
data.arrayBuffers ??= {};
print("InterleavedBuffer clone todo ");
// if ( this.array.buffer._uuid == null ) {
// this.array.buffer._uuid = MathUtils.generateUUID();
// }
// if ( data.arrayBuffers[ this.array.buffer._uuid ] == null ) {
// data.arrayBuffers[ this.array.buffer._uuid ] = this.array.slice( 0 ).buffer;
// }
// const array = new this.array.constructor( data.arrayBuffers[ this.array.buffer._uuid ] );
// const ib = new InterleavedBuffer( array, this.stride );
// ib.setUsage( this.usage );
// return ib;
}