修改静态资源文件夹位置

This commit is contained in:
Teo
2025-07-29 09:37:57 +08:00
parent ed996ee7f4
commit daff686afc
1465 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,38 @@
import Binding from './Binding.js';
import { getFloatLength } from './BufferUtils.js';
class Buffer extends Binding {
constructor( name, buffer = null ) {
super( name );
this.isBuffer = true;
this.bytesPerElement = Float32Array.BYTES_PER_ELEMENT;
this._buffer = buffer;
}
get byteLength() {
return getFloatLength( this._buffer.byteLength );
}
get buffer() {
return this._buffer;
}
update() {
return true;
}
}
export default Buffer;